public static interface MaterialAutoComplete.MaterialChipProvider
MaterialChip
is created, given a
SuggestOracle.Suggestion
.Modifier and Type | Method and Description |
---|---|
gwt.material.design.client.ui.MaterialChip |
getChip(com.google.gwt.user.client.ui.SuggestOracle.Suggestion suggestion)
Creates and returns a
MaterialChip based on the selected
SuggestOracle.Suggestion . |
boolean |
isChipRemovable(com.google.gwt.user.client.ui.SuggestOracle.Suggestion suggestion)
Returns whether the chip defined by the suggestion should be removed from the autocomplete when clicked on its icon.
|
boolean |
isChipSelectable(com.google.gwt.user.client.ui.SuggestOracle.Suggestion suggestion)
Returns whether the chip defined by the suggestion should be selected when the user clicks on it.
|
gwt.material.design.client.ui.MaterialChip getChip(com.google.gwt.user.client.ui.SuggestOracle.Suggestion suggestion)
MaterialChip
based on the selected
SuggestOracle.Suggestion
.suggestion
- the selected SuggestOracle.Suggestion
null
if the
suggestion should be ignored.boolean isChipSelectable(com.google.gwt.user.client.ui.SuggestOracle.Suggestion suggestion)
Selecion of chips is used to batch remove suggestions, for example.
suggestion
- the selected SuggestOracle.Suggestion
MaterialAutoComplete.setSelectedChipStyle(String)
boolean isChipRemovable(com.google.gwt.user.client.ui.SuggestOracle.Suggestion suggestion)
Override this method returning false
to implement your own logic when the user clicks on the chip icon.
suggestion
- the selected SuggestOracle.Suggestion
Copyright © 2018. All rights reserved.