templateList

Template of list container. You can insert any valid html as template.

Simply:

<ul name=”MyName” id=”MyId” class=”MyClass”></ul>

Or

<div class=”containerClass”>

    <div class=”listClass”>

        ${templateItem}

    </div>

    <span>Bottom text</span>

</div>

template variables

  • ${templateItem} – place on which will be items  (it must be alone in parent tag)

templateItem

Template of list item. You can insert any valid html.

For example:

<li data-value="${value}" data-filter="${name}">${name}</li>

templateItem have 2 system attributes :

  • data-value – value of selected item
  • data-filter – value for comparison with user input (not use if allowFilter === false)

 

template variables

  • ${value} – value of option DOMElement (or value from source json)
  • ${name} – node value from option DOMElement (or name from source json)
  • ${any_var} – value html5 data-any_var attrebute from option DOMElement  ( or any_var from source json)

Last edited Jan 9, 2011 at 1:16 PM by SowingSadness, version 1

Comments

No comments yet.