MCPcopy
hub / github.com/angular/components / getOptions

Function getOptions

src/aria/listbox/listbox.spec.ts:799–805  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

797
798 describe(`typeahead functionality (focusMode="${focusMode}")`, () => {
799 const getOptions = () => [
800 {value: 0, label: 'Apple', disabled: false},
801 {value: 1, label: 'Apricot', disabled: false},
802 {value: 2, label: 'Banana', disabled: false},
803 {value: 3, label: 'Blueberry', disabled: false},
804 {value: 4, label: 'Orange', disabled: false},
805 ];
806
807 it('should focus the first matching option when typing characters', async () => {
808 await setupListbox({options: getOptions(), focusMode});

Callers 1

runNavigationTestsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…