mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 04:36:07 +00:00
feat(table): bring back SetColumn
This commit is contained in:
@@ -405,6 +405,12 @@ func (m *Model) Append(rows ...[]string) {
|
||||
m.table.Rows(m.rows...)
|
||||
}
|
||||
|
||||
// SetColumns sets a new columns state.
|
||||
// Deprecated: use SetHeaders instead.
|
||||
func (m *Model) SetColumns(c []Column) {
|
||||
m.SetHeaders(colToString(c)...)
|
||||
}
|
||||
|
||||
// SetRows overwrites existing rows with new ones.
|
||||
func (m *Model) SetRows(r []Row) {
|
||||
// lipgloss' table requires []string, so it's easier to convert these.
|
||||
|
||||
Reference in New Issue
Block a user