mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-11-05 07:41:22 +03:00
feat(list): add IsFiltered method (#98)
This commit is contained in:
@@ -534,6 +534,15 @@ func (m Model) SettingFilter() bool {
|
|||||||
return m.filterState == Filtering
|
return m.filterState == Filtering
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsFiltered returns whether or not the list is currently filtered.
|
||||||
|
// It's purely a convenience method for the following:
|
||||||
|
//
|
||||||
|
// m.FilterState() == FilterApplied
|
||||||
|
//
|
||||||
|
func (m Model) IsFiltered() bool {
|
||||||
|
return m.filterState == FilterApplied
|
||||||
|
}
|
||||||
|
|
||||||
// Width returns the current width setting.
|
// Width returns the current width setting.
|
||||||
func (m Model) Width() int {
|
func (m Model) Width() int {
|
||||||
return m.width
|
return m.width
|
||||||
|
|||||||
Reference in New Issue
Block a user