Type selectors
Type selectors are the leaf methods of the selector chain — they match every widget of a given type and apply a decorator config.
import { gui } from '@golemui/gui-shared';
gui.selectors.inputs({ suppressAutomaticLabels: true }); // every inputgui.selectors.dropdowns({ height: 300 }); // every dropdowngui.selectors.dateInputs({ dayFormat: '2-digit' }); // every dateInputgui.selectors.actions({ disabled: false }); // every actionThe leaf method names mirror the gui.<group>.* shortcuts — gui.inputs.textInput corresponds to gui.selectors.textInputs, and so on.
Targeting a single widget
Section titled “Targeting a single widget”Each leaf has a <type>ByUid variant that targets a specific widget:
gui.selectors.dropdownByUid('country', { itemRenderer: 'countryItemRenderer' });gui.selectors.textInputByUid('username', { autocomplete: 'username' });See also
Section titled “See also”- Scope operators — restricting matches to a tag or state.
- Reference /
gui.selectors— every type selector method.