DropdownMenuComponent class

The DropdownMenuComponent combines a DropdownButtonComponent with a MenuPopup.

Implemented types
Mixed-in types
Annotations
  • @Component(selector: 'dropdown-menu', directives: [DropdownButtonComponent, MenuPopupComponent, PopupSourceDirective], providers: [ExistingProvider(HasDisabled, DropdownMenuComponent)], templateUrl: 'dropdown_menu.html', changeDetection: ChangeDetectionStrategy.onPush, preserveWhitespace: true)

Constructors

Properties

activateFirstItemOnExpand bool
True if the menu item group should select the first item when the popup is opened.
no setterinherited
activateLastItemOnExpand bool
True if the menu item group should select the first item when the popup is opened.
no setterinherited
buttonAriaDescribedBy String?
One or more space-delimited ids of elements that provide additional description for the button for the drop down.
getter/setter pair
buttonAriaLabelledBy String?
The id of an element that describes the button for the drop down.
getter/setter pair
buttonText String?
Dropdown button text.
getter/setter pair
closeMenuOnClick bool
If true, the menu popup will be closed if the trigger button is clicked while the menu is open.
getter/setter pairinherited
disabled bool
getter/setter pairoverride
getter/setter pair
no setter
expandAction ExpandAction?
Expansion state of the menu popup.
getter/setter pairinherited
expandActionChange Stream<ExpandAction?>
Outputs an event when the menu expansion state is changed.
no setterinherited
focusable Focusable?
no getterinherited
hashCode int
The hash code for this object.
no setterinherited
isExpanded bool
True if the menu popup is expanded/open.
getter/setter pairinherited
isExpandedChange Stream<bool>
Outputs an event when the menu is expanded.
no setterinherited
isRtl bool?
Whether the direction of the component is RTL.
getter/setter pairinherited
The displayed menu.
getter/setter pairinherited
getter/setter pair
onFocus Stream<FocusEvent>
Event when the element is focused.
no setterinherited
onTrigger Stream<void>
Outputs an event when the menu button is triggered.
no setterinherited
popupClass String?
CSS classes to append onto the menu popup.
getter/setter pair
preferredPositions Iterable<RelativePosition>
Preferred positions to pass to the material popup component.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabbable bool
Whether the menu is tabbable or not.
getter/setter pair
width int
Selects 1 of 5 predefined width values for the menu.
getter/setter pairinherited

Methods

focus() → void
Item/component focuses itself
inherited
handleBackspaceKey(KeyboardEvent event) → void
inherited
handleCharCodeKey(KeyboardEvent event) → void
inherited
handleDeleteKey(KeyboardEvent event) → void
inherited
handleDownKey(KeyboardEvent event) → void
Provides the default implementation if parent class mixes in KeyboardHandlerMixin.
inherited
handleEndKey(KeyboardEvent event) → void
inherited
handleEnterKey(KeyboardEvent event) → void
inherited
handleEscapeKey(KeyboardEvent event) → void
inherited
handleFocus(FocusEvent event) → void
inherited
handleHomeKey(KeyboardEvent event) → void
inherited
handleLeftKey(KeyboardEvent event) → void
inherited
handlePageDown(KeyboardEvent event) → void
inherited
handlePageUp(KeyboardEvent event) → void
inherited
handlePopupTriggerAction(UIEvent event) → void
inherited
handleRightKey(KeyboardEvent event) → void
inherited
handleSpaceKey(KeyboardEvent event) → void
inherited
handleUpKey(KeyboardEvent event) → void
Provides the default implementation if parent class mixes in KeyboardHandlerMixin.
inherited
ngAfterViewInit() → void
ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onKeyDown(KeyboardEvent event) → void
Keydown callback used to handle arrow keys.
inherited
onKeyPress(KeyboardEvent event) → void
Keypress callback used to handle enter and space keys.
inherited
onKeyUp(KeyboardEvent event) → void
Keyup callback used to handle escape keys.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited