T - the type of the SuggestItem valuepublic class SuggestItem<T> extends Object
SuggestBox| Constructor and Description |
|---|
SuggestItem(T value,
String displayValue) |
SuggestItem(T value,
String displayValue,
BaseIcon<?> icon) |
| Modifier and Type | Method and Description |
|---|---|
DropdownAction<T> |
asDropDownAction() |
static SuggestItem<String> |
create(String value)
Creates a SuggestItem with a String value, the same String will be used for displayValue
|
static <T> SuggestItem<T> |
create(T value,
String displayValue) |
static <T> SuggestItem<T> |
create(T value,
String displayValue,
BaseIcon<?> icon) |
String |
getDisplayValue() |
T |
getValue() |
void |
highlight(String value,
Color highlightColor)
highlight part of the SuggestItem display string that matches the specified value with the
specified color
|
public SuggestItem(T value, String displayValue)
value - TdisplayValue - Stringpublic static SuggestItem<String> create(String value)
value - Stringpublic static <T> SuggestItem<T> create(T value, String displayValue)
T - the type of the SuggestItem valuevalue - TdisplayValue - Stringpublic static <T> SuggestItem<T> create(T value, String displayValue, BaseIcon<?> icon)
T - the type of the SuggestItem valuevalue - TdisplayValue - Stringicon - Iconpublic void highlight(String value, Color highlightColor)
value - StringhighlightColor - Colorpublic DropdownAction<T> asDropDownAction()
DropdownActionpublic T getValue()
public String getDisplayValue()
Copyright © 2019–2022 Dominokit. All rights reserved.