JxDropdownMenu class
A button that reveals a list of links and actions, built on
<details> and <summary>.
It opens and closes without JavaScript. In the browser, Escape, a click
outside and choosing an action close it; Escape and actions give the
focus back to the button.
It is a disclosure, not an ARIA menu: Tab moves through the entries.
Constructors
-
JxDropdownMenu({required String id, required String label, required List<
JxMenuItem> items, JxButtonVariant variant = JxButtonVariant.outline, JxButtonSize size = JxButtonSize.md, JxMenuAlign align = JxMenuAlign.start, String? classes, Key? key}) -
const
Properties
- align → JxMenuAlign
-
final
- classes → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Id of the
<details>element. Unique on the page.final -
items
→ List<
JxMenuItem> -
final
- key → Key?
-
Controls how one component replaces another component in the tree.
finalinherited
- label → String
-
Text of the trigger button.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → JxButtonSize
-
final
- variant → JxButtonVariant
-
final
Methods
-
build(
BuildContext context) → Component - Describes the part of the user interface represented by this component.
-
createElement(
) → Element -
Creates a
StatelessElementto manage this component's location in the tree.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRebuild(
covariant Component newComponent) → bool -
Implement this method to determine whether a rebuild can be skipped.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited