Class Dropdown
java.lang.Object
io.mindspice.simplypages.components.Dropdown
Builder for disclosure navigation markup with a native button and ordinary links/items.
Load framework JS/CSS once in the host shell for click, keyboard and dismissal behavior.
This is not an ARIA menu; custom items retain their native keyboard behavior.
Mutable and not thread-safe. Items and configuration are accumulated on this builder until
build() is called.
-
Method Summary
Modifier and TypeMethodDescriptionAppends a divider item.Appends a custom menu item component.Appends an anchor item with an application-controlled or separately navigation-validated href.build()Builds and returns a static dropdown component tree.static DropdownCreates a dropdown builder.withAlignment(String alignment) Sets dropdown alignment token.Sets additional container class token(s).
-
Method Details
-
create
-
addLink
-
addItem
-
addDivider
-
withClass
-
withAlignment
-
build
Builds and returns a static dropdown component tree.- Returns:
- root dropdown component
-