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 and autocomplete_select_event functions.

Date: 2013-10-20 21:59:20 CDT

Author: Jesse Gumm (@jessegumm)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0

Comments

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


comments powered by Disqus