MenuItemGroupsComponent class
Renders list of menu items.
- Implemented types
- Annotations
-
- @Component(selector: 'menu-item-groups', directives: [ActiveItemDirective, AutoFocusDirective, ButtonDirective, DeferredContentDirective, FocusActivableItemDirective, FocusableDirective, FocusTrapComponent, HighlightedTextComponent, MaterialIconComponent, MaterialListComponent, MaterialMenuComponent, MaterialPopupComponent, MenuItemAffixListComponent, MenuItemGroupsComponent, MaterialTooltipDirective, MaterialSelectItemComponent, HighlightedTextComponent, NgClass, NgFor, NgIf, PopupSourceDirective], templateUrl: 'menu_item_groups.html', styleUrls: ['menu_item_groups.scss.css'], changeDetection: ChangeDetectionStrategy.onPush, preserveWhitespace: true)
Constructors
- MenuItemGroupsComponent(ChangeDetectorRef changeDetector, @Optional() DropdownHandle? dropdownHandle, @Optional() IdGenerator? idGenerator)
-
factory
Properties
- activateFirstItemOnInit ↔ bool
-
Whether the first item of the activeModel should be selected on init.
getter/setter pair
- activateLastItemOnInit ↔ bool
-
Whether the last item of the activeModel should be selected on init.
getter/setter pair
- activeModel ↔ ActiveItemModel?
-
getter/setter pair
-
focusableItems
↔ List<
FocusableActivateItem> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasHighlight → bool
-
no setter
- highlight ← String
-
Part of the string to highlight.
no getter
- highlighter ↔ TextHighlighter?
-
Highlighter to use, need to be to be provided if highlight is used.
getter/setter pair
- isKeyboardDriven → bool
-
no setter
-
getter/setter pair
- isMouseDriven → bool
-
Whether the mouse is driving the selection.
no setter
-
The menu to display.
getter/setter pair
- popupClass ↔ String
-
CSS classes to append onto the sub-menu popups.
getter/setter pair
-
preferredSubMenuPositions
→ List<
RelativePosition> -
no setter
- preventCloseOnPressLeft ← bool
-
Whether the popup should be closed on left key press.
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selected
→ Stream<
MenuItem> -
Fires when user selects an item in the menu.
no setter
-
tooltipPositions
→ List<
RelativePosition> -
no setter
- width → int
-
no setter
Methods
-
attributeToString(
Object? value) → String? -
focus(
) → void -
Item/component focuses itself
override
-
getItemValue(
MenuItem item) → dynamic -
getSelectionModel(
MenuItemGroup group) → SelectionModel -
handleKeydown(
KeyboardEvent event, {bool shouldPreventDefault = true}) → void -
handleSelectItemTrigger(
MenuItem item, MenuItemGroup group, UIEvent event) → void - Called when a material select item is triggered, whether through keypress or through click.
-
hasAutoFocus(
String? itemId) → bool -
Returns true if the current item with ID
itemId
should be auto-focused on menu open. -
highlighted(
String input) → List< HighlightedTextSegment> - Returns list of highlighted segments for a given input, using provided highlighter.
-
isItemActive(
MenuItem item) → bool -
isItemVisible(
MenuItem item) → bool -
isSubMenuVisible(
MenuItem item) → bool -
Whether the subMenu of
item
is visible. -
itemAriaChecked(
MenuItem item) → String? -
Returns the value for a menu item's
aria-checked
attribute value. -
ngAfterViewInit(
) → void -
ngOnDestroy(
) → void - Executed before the directive is removed from the DOM and destroyed.
-
ngOnInit(
) → void - Executed after the first change detection run for a directive.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onFocus(
FocusEvent event) → void -
onMouseMove(
MouseEvent _) → void -
onMouseOut(
MouseEvent event) → void -
onMouseOver(
MouseEvent event) → void -
onSubMenuItemSelected(
MenuItem item) → void -
onSubMenuVisibilityChanged(
MenuItem item, bool visible) → void -
select(
Event event, MenuItem item, MenuItemGroup group) → void -
shouldSelectItemOnClick(
MenuItem item) → bool -
toggleExpansionIfCollapsible(
MenuItemGroup group) → void - Toggle the expansion of the group if it's collapsible.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited