Skip to content

Commit

Permalink
feat: set filtering state of select (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
PJGaetan committed Jun 18, 2024
1 parent 79989f4 commit 7923781
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions field_select.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ func (s *Select[T]) Title(title string) *Select[T] {
return s
}

// Filtering sets the filtering state of the select field.
func (s *Select[T]) Filtering(filtering bool) *Select[T] {
s.filtering = filtering
s.filter.Focus()
return s
}

// Description sets the description of the select field.
func (s *Select[T]) Description(description string) *Select[T] {
s.description = description
Expand Down

0 comments on commit 7923781

Please sign in to comment.