Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set specific icon for node #277

Open
noorbakerally opened this issue Jul 16, 2017 · 1 comment
Open

Set specific icon for node #277

noorbakerally opened this issue Jul 16, 2017 · 1 comment

Comments

@noorbakerally
Copy link

Is it possible to set a specific icon for a node ?

@shenghou
Copy link

Yes, you can add specific icon or other what you want , like this.
<treecontrol class="tree-boot" tree-model="treeData" options="treeOptions" expanded-nodes="expandedNodes" on-selection="seleNode(node,$index,$first,$last,$path,selected,expanded,$result)" selected-node="groupActive"> <span title="{{node.description}}"> <span ng-switch="" on="node.taxonomy"> <span ng-switch-when="terminalgroup" class="fa fa-folder-open" aria-hidden="true"></span> </span> <span>{{node.name}}</span> // badge <span class="badge clt-bg-success" ng-if="node.onlineNum>0">{{node.onlineNum}}</span> <span class="badge" ng-hide="node.offlineNum==0&&node.onlineNum>0">{{node.offlineNum}}</span> <span class="fa fa-check" ng-if="node.id==groupActive.id"></span> //icon </span> </treecontrol>

UI

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants