From b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 Mon Sep 17 00:00:00 2001 From: st782s Date: Thu, 4 May 2017 07:48:42 -0400 Subject: [PORTAL-7] Rebase This rebasing includes common libraries and common overlays projects abstraction of components Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8 Signed-off-by: st782s --- .../jqTree/_examples/09_custom_html.html | 68 ---------------------- 1 file changed, 68 deletions(-) delete mode 100644 ecomp-portal-FE/client/bower_components/jqTree/_examples/09_custom_html.html (limited to 'ecomp-portal-FE/client/bower_components/jqTree/_examples/09_custom_html.html') diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_examples/09_custom_html.html b/ecomp-portal-FE/client/bower_components/jqTree/_examples/09_custom_html.html deleted file mode 100644 index 4a0cebec..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/_examples/09_custom_html.html +++ /dev/null @@ -1,68 +0,0 @@ ---- -title: Javascript tree with custom html -layout: page -js: examples/custom_html.js -css: example.css ---- - - - -

Example 9 - custom html

- - -

- This example uses the onCreateLi option to create an edit link next to the tree node. -

-
- -

html

- -{% highlight html %} -
-{% endhighlight %} - -

javascript

- -{% highlight js %} -$(function() { - var $tree = $('#tree1'); - - $tree.tree({ - data: ExampleData.example_data, - autoOpen: 1, - onCreateLi: function(node, $li) { - // Append a link to the jqtree-element div. - // The link has an url '#node-[id]' and a data property 'node-id'. - $li.find('.jqtree-element').append( - 'edit' - ); - } - }); - - // Handle a click on the edit link - $tree.on( - 'click', '.edit', - function(e) { - // Get the id from the 'node-id' data property - var node_id = $(e.target).data('node-id'); - - // Get the node from the tree - var node = $tree.tree('getNodeById', node_id); - - if (node) { - // Display the node name - alert(node.name); - } - } - ); -}); -{% endhighlight %} -- cgit 1.2.3-korg