()
| 291 | } |
| 292 | |
| 293 | func (m selectModel) filteredOptions() []string { |
| 294 | options := []string{} |
| 295 | for _, o := range m.options { |
| 296 | filter := strings.ToLower(m.search.Value()) |
| 297 | option := strings.ToLower(o) |
| 298 | |
| 299 | if strings.Contains(option, filter) { |
| 300 | options = append(options, o) |
| 301 | } |
| 302 | } |
| 303 | return options |
| 304 | } |
| 305 | |
| 306 | type RichMultiSelectOptions struct { |
| 307 | Message string |
no test coverage detected