MaterialTreeDropdownComponent<T> class
A button-triggered dropdown containing a MaterialTreeComponent.
- Implemented types
- Mixed-in types
- Annotations
-
- @Component(selector: 'material-tree-dropdown', changeDetection: ChangeDetectionStrategy.onPush, directives: [DeferredContentDirective, KeyboardOnlyFocusIndicatorDirective, MaterialIconComponent, MaterialPopupComponent, MaterialTreeComponent, MaterialTreeFilterComponent, NgIf, PopupSourceDirective], directiveTypes: [Typed<MaterialTreeComponent>.of([#T])], providers: [ExistingProvider(Focusable, MaterialTreeDropdownComponent), ExistingProvider(MaterialTreeRoot, MaterialTreeDropdownComponent)], templateUrl: 'material_tree_dropdown.html', styleUrls: ['material_tree_dropdown.scss.css'], visibility: Visibility.all)
Constructors
- MaterialTreeDropdownComponent(DomService _domService, @Attribute('popupClass') String? popupClass, HtmlElement element)
Properties
- allowDeselectInHierarchy ↔ bool
-
Whether clicking on a selected item should deselect it. (Only applicable
when hierarchy is supported.)
getter/setter pair
- allowParentMultiSelection → bool
-
Whether the widgets supports the selection of non-leaf nodes.
no setterinherited
- allowParentSingleSelection ↔ bool
-
Whether the widgets supports the selection of non-leaf nodes
getter/setter pair
- autoDismiss ↔ bool?
-
getter/setter pairinherited
- expandAll ↔ bool
-
Whether to always expand an option group.
getter/setter pair
-
factoryRenderer
↔ FactoryRenderer<
RendersValue, T> ? -
Specifies the componentRenderer to use to determine the component for
rendering an item.
Specifies the factoryRenderer to use to determine the factory for
rendering an item.
getter/setter pairinherited-getteroverride-setter
- filterableOptions → Filterable?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFiltered ↔ bool
-
Whether a filter is currently applied.
getter/setter pairinherited
-
itemRenderer
↔ ItemRenderer<
T> ? -
A simple function to render the an item to string.
@override
getter/setter pairinherited-getteroverride-setter
- labelRenderer ↔ ItemRenderer?
-
Function to convert the selected value to a string to be displayed as the
button text.
getter/setter pair
- materialTreeFilterComponent ↔ MaterialTreeFilterComponent?
-
getter/setter pair
- optimizeForDropdown → bool
-
Whether to hide check-marks in a single select dropdown
final
-
options
↔ SelectionOptions<
T> -
The available options for this container.
getter/setter pairinherited-getteroverride-setter
- placeholder ↔ String?
-
Returns the text to be displayed in the button or in the filter (if
enabled).
getter/setter pair
- popupClassName → String
-
CSS classes from the root element, passed to the popup to allow scoping of
mixins.
final
-
popupPositions
↔ List<
RelativePosition> -
List of positions to try and draw the options popup.
getter/setter pair
- previouslyToggledNode ↔ T?
-
The previously toggled node.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selection
↔ SelectionModel<
T> -
The selection model this container represents.
getter/setter pairinherited-getteroverride-setter
- shouldExpandAllWhenFiltered ↔ bool
-
When
true
expand all items when the tree is being filtered.getter/setter pair - showFilterInsideButton → bool
-
no setter
- showFilterInsidePopup ↔ bool
-
Place the filter input inside of the popup.
getter/setter pair
- supportsFiltering → bool
-
Whether the widget supports searching the data set.
no setterinherited
- supportsHierarchy → bool
-
Whether the widgets supports expansion and child data sets.
no setterinherited
- visible ↔ bool
-
Whether to show the dropdown or not.
getter/setter pair
-
visibleChange
→ Stream<
bool> -
Fired when the dropdown's visibility changes.
no setter
Methods
-
close(
) → void -
override
-
focus(
) → void -
Item/component focuses itself
override
-
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
-
open(
) → void -
override
-
toggle(
) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited