MaterialSelectDropdownItemComponent<T> class
Container for a single item selected in a dropdown.
This should only be used in select dropdowns.
- Inheritance
-
- Object
- RootFocusable
- ButtonDirective
- MaterialSelectItemComponent<
T> - MaterialSelectDropdownItemComponent
- Annotations
-
- @Component(selector: 'material-select-dropdown-item', providers: [ExistingProvider(SelectionItem, MaterialSelectDropdownItemComponent), ExistingProvider(HasRenderer, MaterialSelectDropdownItemComponent)], styleUrls: ['material_select_dropdown_item.scss.css'], directives: [DynamicComponent, MaterialIconComponent, MaterialCheckboxComponent, NgIf], templateUrl: 'material_select_item.html', changeDetection: ChangeDetectionStrategy.onPush)
Constructors
- MaterialSelectDropdownItemComponent(HtmlElement element, @Attribute('role') String? role, @Optional() DropdownHandle? dropdown, @Optional() ActivationHandler? activationHandler, @Optional() IdGenerator? idGenerator, ChangeDetectorRef cdRef)
Properties
- ariaRole → String?
-
no setterinherited
- closeOnActivate ↔ bool
-
Whether to cause dropdown to be closed on activation.
getter/setter pairinherited
-
componentFactory
→ ComponentFactory<
Object> ? -
no setterinherited
- deselectOnActivate ← bool
-
If true and selectOnActivate is true, triggering this item component will
deselect the currently selected
value
within the selection; if false, triggering this component whenvalue
is selected will do nothing.no getterinherited - disabled ↔ bool
-
Is the component disabled.
getter/setter pairinherited
- disabledStr → String
-
String value to be passed to aria-disabled.
no setterinherited
- element → HtmlElement
-
finalinherited
-
factoryRenderer
↔ FactoryRenderer<
RendersValue, T> ? -
Returns a
ComponentFactory
for dynamic component loader to use to render an item.getter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- hideCheckbox ↔ bool
-
Whether to hide the checkbox.
getter/setter pairinherited
- hostTabIndex → String?
-
no setterinherited
- id ↔ String?
-
The id of the element.
getter/setter pair
- isAriaChecked → bool
-
no setterinherited
- isAriaCheckedStr → String
-
no setterinherited
- isHidden ↔ bool
-
Whether the item should be hidden.
getter/setter pairinherited
- isSelected → bool
-
Whether this item should be marked as selected.
no setteroverride
-
itemRenderer
↔ ItemRenderer<
T> ? -
A function to render an item as a String.
getter/setter pairinherited
- role ↔ String?
-
Role of this component used for a11y.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected ↔ bool
-
Manually mark items selected.
getter/setter pairinherited
-
selection
↔ SelectionModel<
T> -
The selection model this item is a member of.
getter/setter pairinherited
- selectOnActivate ← bool
-
If true, triggering this item component will select the
value
within the selection; if false, triggering this item component will do nothing.no getterinherited - seletedStr → String
-
no setter
- supportsMultiSelect → bool
-
Whether the container supports selecting multiple items.
no setterinherited
- tabbable ↔ bool
-
Is the component tabbable.
getter/setter pairinherited
- tabIndex → String?
-
no setterinherited
- tabindex ← String?
-
The tab index of the component.
no getterinherited
-
trigger
→ Stream<
UIEvent> -
Fired when the button is activated via click, tap, or key press.
no setterinherited
- useCheckMarks ↔ bool
-
If true, check marks are used instead of checkboxes to indicate whether or
not the item is selected for multi-select items.
getter/setter pairinherited
- value ↔ T?
-
The value this selection item represents.
getter/setter pairinherited
- valueHasLabel → bool
-
no setterinherited
- valueLabel → String?
-
no setterinherited
Methods
-
dispose(
) → void -
Disposes this disposable and any resources it has open.
inherited
-
focus(
) → void -
Item/component focuses itself
inherited
-
handleActivate(
UIEvent e) → void -
inherited
-
handleClick(
MouseEvent mouseEvent) → void -
Triggers if not disabled.
inherited
-
handleKeyPress(
KeyboardEvent keyboardEvent) → void -
Triggers on enter and space if not disabled.
inherited
-
ngOnDestroy(
) → void -
Executed before the directive is removed from the DOM and destroyed.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onLoadCustomComponent(
ComponentRef ref) → void -
override
-
preventTextSelectionIfShiftKey(
MouseEvent e) → void -
toString(
) → String -
A string representation of this object.
inherited
-
updateTabIndex(
) → void -
Use this method if you want to manually compute and cache the tab index.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited