| Package | Description |
|---|---|
| org.dominokit.domino.ui.button | |
| org.dominokit.domino.ui.dropdown | |
| org.dominokit.domino.ui.forms |
| Modifier and Type | Method and Description |
|---|---|
DropdownButton |
DropdownButton.appendChild(DropdownAction<?> action)
Add a DropdownAction to the dropdown button menu
|
| Modifier and Type | Method and Description |
|---|---|
DropdownAction<T> |
DropdownAction.addFocusHandler(DropdownAction.FocusHandler<T> focusHandler)
Adds focus handler that will be called when the action gets focused
|
DropdownAction<T> |
DropdownAction.addSelectionHandler(HasSelectionHandler.SelectionHandler<T> selectionHandler)
Adds a Selection handler to the component
|
static DropdownAction<String> |
DropdownAction.create(String content)
Creates an action with text value
|
static <T> DropdownAction<T> |
DropdownAction.create(T value,
elemental2.dom.HTMLElement content)
Creates an action with
T as a value and a content HTMLElement |
static <T> DropdownAction<T> |
DropdownAction.create(T value,
String displayValue)
Creates an action with
T as a value and a displayValue to be shown |
static <T> DropdownAction<T> |
DropdownAction.create(T value,
String displayValue,
BaseIcon<?> icon)
Creates an action with
T as a value, displayValue to be shown, and an icon |
DropdownAction<T> |
DropdownAction.deFilter()
Shows the action as it does comply with the provided search criteria
|
DropdownAction<T> |
DropdownAction.filter()
Hides the action as it does not comply with the provided search criteria
|
DropdownAction<T> |
DropdownAction.focus()
Focuses the action
|
DropdownAction<T> |
DropdownAction.removeSelectionHandler(HasSelectionHandler.SelectionHandler<T> selectionHandler) |
DropdownAction<T> |
DropdownAction.select()
Selects the action, this will trigger all the selection handlers
|
DropdownAction<T> |
DropdownAction.setAutoClose(boolean autoClose)
Sets if selecting the action will close the menu automatically
|
DropdownAction<T> |
DropdownAction.setBackground(Color background) |
DropdownAction<T> |
DropdownAction.setDisplayValue(BaseIcon<?> icon,
String displayValue)
Sets the display value of the action as text along with an icon
|
DropdownAction<T> |
DropdownAction.setDisplayValue(elemental2.dom.HTMLElement content)
Sets the display value of the action as an element
|
DropdownAction<T> |
DropdownAction.setDisplayValue(String displayValue)
Sets the display value of the action as text
|
DropdownAction<T> |
DropdownAction.setExcludeFromSearchResults(boolean excludeFromSearchResults)
Sets if this action is not included in the search and will be hidden if the search provided
|
| Modifier and Type | Method and Description |
|---|---|
List<DropdownAction<?>> |
DropDownMenu.getActions() |
List<DropdownAction<T>> |
DropdownActionsGroup.getActions() |
List<DropdownAction<?>> |
DropDownMenu.getFilteredAction() |
| Modifier and Type | Method and Description |
|---|---|
DropDownMenu |
DropDownMenu.addAction(DropdownAction<?> action)
Deprecated.
|
DropDownMenu |
DropDownMenu.appendChild(DropdownAction<?> action)
Adds an action
|
DropdownActionsGroup<T> |
DropdownActionsGroup.appendChild(DropdownAction<T> action)
Adds action to the group
|
boolean |
DropDownMenu.SearchFilter.filter(String searchText,
DropdownAction<?> dropdownAction,
boolean caseSensitive)
Checks if the
dropdownAction should be displayed or not based on the searchText |
DropDownMenu |
DropDownMenu.insertFirst(DropdownAction<?> action)
Inserts an action at the first index
|
void |
DropdownAction.FocusHandler.onFocus(DropdownAction<T> dropdownAction)
Will be called when the element gets focused
|
| Modifier and Type | Method and Description |
|---|---|
DropdownAction<T> |
SuggestItem.asDropDownAction() |
protected DropdownAction<V> |
AbstractSuggestBox.dropdownAction(SuggestItem<V> suggestItem) |
| Modifier and Type | Method and Description |
|---|---|
MultiSelect<T> |
MultiSelect.appendChild(SelectOption<T> option,
Consumer<DropdownAction<SelectOption<T>>> andThen) |
S |
AbstractSelect.appendChild(SelectOption<V> option,
Consumer<DropdownAction<SelectOption<V>>> andThen) |
Copyright © 2019–2022 Dominokit. All rights reserved.