Tree View good
Simply Super Tree View
from the above :: find the following ::
Select/Deselect Handlers
Want
to be notified any time a checkbox changes state as the result of a click? Use
the
ivh-treeview-on-cb-change
attribute. Your
expression will be evaluated whenever a node checkbox changes state with the
following local variables: ivhNode
, the
node whose selected state changed; ivhIsSelected
, the
new selected state of the node; and ivhTree
, the
tree ivhNode
belongs to.
You
may also supply a selected handler as a function (rather than an angular
expression) using
ivh-treeview-options
or
by setting a global onCbChange
option.
In this case the function will be passed a single object with ivhNode
, ivhIsSelected
, and ivhTree
properties.
Note that programmatic changes to a node's selected state
(including selection change propagation) will not trigger this callback. It is
only run for the actual node clicked on by a user.
<div ng-controller="MyCtrl as fancy">
<div
ivh-treeview="fancy.bag"
ivh-treeview-on-cb-change="fancy.otherAwesomeCallback(ivhNode, ivhIsSelected, ivhTree)">
</div>
Demo: Select/Deselect
Handler
Regards
Naga
+91 9632309795
No comments:
Post a Comment