Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Angular Option Tree

Code Climate Build Status

Distributed via

Bower version

Demo

A directive to use jquery-option-tree with AngularJS.

Usage

  1. Install with bower: bower install --save angular-option-tree
  2. Include angular-option-tree.js.
  3. Add option-tree to you app modules.
  4. Use the option-tree directive.

Basic Example

<form class="form-horizontal" role="form" ng-controller="Demo1Ctrl">
  <input option-tree="tree_data" option-tree-class="form-contol">
</form>

option-tree: JSON object in angular controller scope.

option-tree-class: customize style for generated <select> element.

Loading Remote Data (JSON)

<form class="form-horizontal" role="form" ng-controller="Demo4Ctrl">
  <input option-tree option-tree-src="example.json" option-tree-class="form-control">
</form>

option-tree-src: remote JSON source.

License

MIT

About

A directive to use jquery-option-tree with AngularJS.

Resources

Stars

Watchers

Forks

Packages

No packages published