V - the type of the valuepublic interface TagsStore<V>
TagsStore| Modifier and Type | Method and Description |
|---|---|
TagsStore<V> |
addItem(String displayValue,
V item)
Adds a new item with its display value
|
TagsStore<V> |
addItems(Map<String,V> items)
Adds a list of items with their display values
|
TagsStore<V> |
clear()
Clears the store
|
Map<String,V> |
filter(String searchValue)
Filters the items based on the search query
|
String |
getDisplayValue(V value) |
V |
getItemByDisplayValue(String displayValue) |
Map<String,V> |
getItems() |
TagsStore<V> |
removeItem(V item)
Removes item from the store
|
TagsStore<V> addItem(String displayValue, V item)
displayValue - the display value that will be presented when selecting this itemitem - the itemTagsStore<V> removeItem(V item)
item - the itemTagsStore<V> addItems(Map<String,V> items)
items - a map representing the display value and the itemV getItemByDisplayValue(String displayValue)
displayValue - the display value to search fordisplayValueMap<String,V> filter(String searchValue)
searchValue - the queryCopyright © 2019–2022 Dominokit. All rights reserved.