Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterState ¶
type FilterState struct {
// contains filtered or unexported fields
}
FilterState manages the tag filter with explicit lifecycle: - active: whether a filter is currently applied - value: the tag being filtered (only meaningful when active) This replaces the previous plain `tagParam` string to provide clear state management and enable proper reset/clear functionality.
func (*FilterState) Clear ¶
func (f *FilterState) Clear()
Clear deactivates the filter and resets the value
func (*FilterState) IsActive ¶
func (f *FilterState) IsActive() bool
IsActive returns whether a filter is currently applied
func (*FilterState) Set ¶
func (f *FilterState) Set(tag string)
Set activates the filter with a specific tag value
func (*FilterState) Value ¶
func (f *FilterState) Value() string
Value returns the current filter value (empty if not active)
Click to show internal directories.
Click to hide internal directories.