Textbox Autocomplete Element

Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Advanced Guides | 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


#textbox_autocomplete { tag=lookup }


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{}


tag (Erlang Term)
The tag to be passed to the autocomplete_enter_event and autocomplete_select_event functions.

Date: 2014-11-12 19:50:45 CST

Author: Jesse Gumm (@jessegumm)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0


Note:To specify code blocks, just use the generic code block syntax:
<pre><code>your code here</code></pre>

comments powered by Disqus