Textbox Autocomplete Element
Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Plugins | Mobile | Troubleshooting | About
Table of Contents
1 Textbox Autocomplete Element - #textbox_autocomplete {}
The textbox_autocomplete element produces an HTML textbox with built-in autocomplete functionality through the use of server postbacks for selecting and element and typing an element
Usage
#textbox_autocomplete { tag=lookup }
Events
autocomplete_enter_event(SearchTerm, Tag) -> _JsonString = some_search_function(SearchTerm), autocomplete_select_event({struct, [{<<"id">>,ID }, {<<"value">>, Value}]}, Tag) -> wf:flash(wf:f("Selected ~p:~p",[ID, Value])).
Core Attributes
Core attributes copied from #textbox{}
Attributes
- tag (Erlang Term)
- The tag to be passed to the
autocomplete_enter_event
andautocomplete_select_event
functions.