mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-12-03 11:51:55 +03:00
Compare commits
1 Commits
feature/te
...
set-column
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e920595f2 |
@@ -264,6 +264,12 @@ func (m *Model) SetRows(r []Row) {
|
||||
m.UpdateViewport()
|
||||
}
|
||||
|
||||
// SetColumns set a new columns state.
|
||||
func (m *Model) SetColumns(c []Column) {
|
||||
m.cols = c
|
||||
m.UpdateViewport()
|
||||
}
|
||||
|
||||
// SetWidth sets the width of the viewport of the table.
|
||||
func (m *Model) SetWidth(w int) {
|
||||
m.viewport.Width = w
|
||||
|
||||
Reference in New Issue
Block a user