
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
angular-fancytree
Advanced tools
Simple angular directive for quick fancytree inclusion
download it:
bower install --save angular-fancytree
OR
npm install --save angular-fancytree
include it:
<script src="bower_components/angular-fancytree/dist/angular-fancytree.min.js"></script>
OR
<script src="node_modules/angular-fancytree/dist/angular-fancytree.min.js"></script>
add depedency to your app:
(function() {
'use strict';
angular
.module('exampleApp', [
'angular-fancytree'
]);
})();
include dependencies:
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/jquery-ui/jquery-ui.min.js"></script>
<script src="bower_components/jquery.fancytree/dist/jquery.fancytree.min.js"></script>
<!-- your fav theme: -->
<link rel="stylesheet" href="bower_components/jquery.fancytree/dist/skin-bootstrap-n/ui.fancytree.min.css">
use it:
(function () {
'use strict';
angular
.module('yourModule')
.controller('ExampleController', ExampleController);
ExampleController.$inject = ['fancytreeFactory'];
/* @ngInject */
function ExampleController(fancytreeFactory) {
// Passing fancytree options
// second arg is fancytree's element id
fancytreeFactory.setData([
{title: "Node 1", key: "1"},
{title: "Folder 2", key: "2", folder: true, children: [
{title: "Node 2.1", key: "3", myOwnAttr: "abc"},
{title: "Node 2.2", key: "4"}
]}
], 'exampleFancytree');
// Passing json with data: "function_name" : callback
// second arg is fancytree's element id
fancytreeFactory.setMethods({
"select": function (event, data) {
// You should inject required services like that
var ExampleService = $injector.get('ExampleService');
var node = data.node;
if (node.isSelected()) {
ExampleService.doSomething(node.title);
} else {
ExampleService.doSomethingElse(node.title);
}
}
}, 'exampleFancytree');
}
})();
<fancytree disabled="false" checkbox="true" debuglevel="0"></fancytree>
I will be working on it, I promise!
FAQs
Quick fancytree directive
We found that angular-fancytree demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.