GetSearchState returns the search state for a given component.
(component string)
| 99 | |
| 100 | // GetSearchState returns the search state for a given component. |
| 101 | func (s *State) GetSearchState(component string) *SearchState { |
| 102 | state, exists := s.SearchStates[component] |
| 103 | if !exists { |
| 104 | return nil |
| 105 | } |
| 106 | |
| 107 | return state |
| 108 | } |
| 109 | |
| 110 | // FilterNodes filters the nodes based on the given search string. |
| 111 | func FilterNodes(filter string) { |
no outgoing calls
no test coverage detected