mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
refactor: make SetHeaders variadic
This commit is contained in:
+2
-1
@@ -339,7 +339,8 @@ func rowToString(rows []Row) [][]string {
|
||||
}
|
||||
|
||||
// SetHeaders sets the table headers.
|
||||
func (m *Model) SetHeaders(headers []string) {
|
||||
// TODO should this be variadic to match lipgloss table?
|
||||
func (m *Model) SetHeaders(headers ...string) {
|
||||
m.headers = headers
|
||||
m.table.Headers(headers...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user