mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-23 22:32:59 +03:00
docs(list): fix linting errors
This commit is contained in:
parent
57d79daf4d
commit
2e55803b28
10
list/list.go
10
list/list.go
@ -291,19 +291,19 @@ func (m Model) ShowStatusBar() bool {
|
|||||||
return m.showStatusBar
|
return m.showStatusBar
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetStatusBarItemName defines a replacement for the items identifier. Defaults
|
// SetStatusBarItemName defines a replacement for the items identifier.
|
||||||
// to item/items
|
// Defaults to item/items.
|
||||||
func (m *Model) SetStatusBarItemName(singular, plural string) {
|
func (m *Model) SetStatusBarItemName(singular, plural string) {
|
||||||
m.itemNameSingular = singular
|
m.itemNameSingular = singular
|
||||||
m.itemNamePlural = plural
|
m.itemNamePlural = plural
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatusBarItemName returns singular and plural status bar item names
|
// StatusBarItemName returns singular and plural status bar item names.
|
||||||
func (m Model) StatusBarItemName() (string, string) {
|
func (m Model) StatusBarItemName() (string, string) {
|
||||||
return m.itemNameSingular, m.itemNamePlural
|
return m.itemNameSingular, m.itemNamePlural
|
||||||
}
|
}
|
||||||
|
|
||||||
// ShowingPagination hides or shoes the paginator. Note that pagination will
|
// SetShowPagination hides or shoes the paginator. Note that pagination will
|
||||||
// still be active, it simply won't be displayed.
|
// still be active, it simply won't be displayed.
|
||||||
func (m *Model) SetShowPagination(v bool) {
|
func (m *Model) SetShowPagination(v bool) {
|
||||||
m.showPagination = v
|
m.showPagination = v
|
||||||
@ -569,7 +569,7 @@ func (m *Model) StopSpinner() {
|
|||||||
m.showSpinner = false
|
m.showSpinner = false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper for disabling the keybindings used for quitting, incase you want to
|
// Helper for disabling the keybindings used for quitting, in case you want to
|
||||||
// handle this elsewhere in your application.
|
// handle this elsewhere in your application.
|
||||||
func (m *Model) DisableQuitKeybindings() {
|
func (m *Model) DisableQuitKeybindings() {
|
||||||
m.disableQuitKeybindings = true
|
m.disableQuitKeybindings = true
|
||||||
|
Loading…
Reference in New Issue
Block a user