mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
feat(table): remove redundant SetFocused function
This commit is contained in:
@@ -348,12 +348,6 @@ func (m *Model) SetWidth(w int) *Model {
|
|||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetFocused sets the focus state of the table.
|
|
||||||
func (m *Model) SetFocused(f bool) *Model {
|
|
||||||
m.focus = f
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetYOffset sets the YOffset position in the table.
|
// SetYOffset sets the YOffset position in the table.
|
||||||
func (m *Model) SetYOffset(n int) *Model {
|
func (m *Model) SetYOffset(n int) *Model {
|
||||||
m.yOffset = clamp(n, 0, len(m.rows)-1)
|
m.yOffset = clamp(n, 0, len(m.rows)-1)
|
||||||
|
|||||||
Reference in New Issue
Block a user