Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (21 loc) · 942 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 942 Bytes

Angular Simple TreePicker

Angular Directive for the Simple TreePicker jQuery plugin. Demo is here.

Usage

  • Add references to simple tree picker and the directive
<link rel="stylesheet" href="css/jquery.simple-tree-picker.css" />
<script src="js/jquery/jquery.js"></script>
<script src="js/angular/angular.js"></script>
<script src="js/jquery.simple-treepicker.js"></script>
<script src="js/angular-simple-treepicker.js"></script>
  • Add a dependency to the treepicker module in your application.
angular.module('MyApp', ['treepicker']);
  • Add a treepicker attribute to your <div> tag
  • Addng-model attribute for data-binding your model
  • Addng-tree attribute for data-binding your tree object
<div treepicker ng-model="myLocations" ng-tree="myTree" class="tree"></div>