ComboTree

Extend from $.fn.combo.defaults and $.fn.tree.defaults. Override defaults with $.fn.combotree.defaults.

Dependencies

Usage

  1. <select id="cc" style="width:200px;"></select>  
  1. <input id="cc" value="01">  
  1. $('#cc').combotree({  
  2.     url:'tree_data.json'  
  3. });  

Properties

The properties extend from combo and tree, below is the overridden properties for combotree.

Name Type Description Default
editable boolean Defines if user can type text directly into the field. false

Events

The events extend from combo and tree.

Methods

The methods extend from combo, below is the added and overridden methods for combotree.

Name Parameter Description
options none Return the options object.
tree none Return the tree object.
loadData data Load the locale tree data.
reload url Request the remote tree data again.
clear none Clear the component value.
setValues values Set the component value array.
setValue value Set the component value.