public interface HintHandler
Modifier and Type | Method and Description |
---|---|
Node |
getContent(String item)
Returns the node to be inserted to the editor when selecting a
suggestion.
OPTIONAL: defaults to simple text node for suggestion item. |
String |
getTemplate(String item)
Returns the suggestion item's template on suggestion pop-over.
OPTIONAL: defaults to the suggestion item. |
String[] |
onSearch(String keyword)
Returns the suggestion items for the matched keyword.
REQUIRED: it must be implemented. |
String[] onSearch(String keyword)
keyword
- the matched keyword.String getTemplate(String item)
item
- suggestion itemNode getContent(String item)
item
- selected suggestion itemCopyright © 2017. All rights reserved.