diff options
author | st782s <statta@research.att.com> | 2017-05-04 07:48:42 -0400 |
---|---|---|
committer | st782s <statta@research.att.com> | 2017-05-04 12:28:17 -0400 |
commit | b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch) | |
tree | e69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components/jqTree/static/examples | |
parent | 39d1e62c84041831bfc52cca73b5ed5efaf57d27 (diff) |
[PORTAL-7] Rebase
This rebasing includes common libraries and common overlays projects
abstraction of components
Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8
Signed-off-by: st782s <statta@research.att.com>
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jqTree/static/examples')
12 files changed, 0 insertions, 208 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoescape.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoescape.js deleted file mode 100644 index 26b7173f..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoescape.js +++ /dev/null @@ -1,19 +0,0 @@ -$(function() { - var data = [ - { - name: 'examples', - children: [ - { name: '<a href="example1.html">Example 1</a>' }, - { name: '<a href="example2.html">Example 2</a>' }, - '<a href="example3.html">Example 3</a>' - ] - } - ]; - - // set autoEscape to false - $('#tree1').tree({ - data: data, - autoEscape: false, - autoOpen: true - }); -}); diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoscroll.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoscroll.js deleted file mode 100644 index 936f956f..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/autoscroll.js +++ /dev/null @@ -1,8 +0,0 @@ -$(function() { - var $tree = $('#tree1'); - $tree.tree({ - data: ExampleData.example_data, - dragAndDrop: true, - autoOpen: true - }); -}); diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/button-on-right.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/button-on-right.js deleted file mode 100644 index 30d6551b..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/button-on-right.js +++ /dev/null @@ -1,15 +0,0 @@ -$.mockjax({ - url: '*', - response: function(options) { - this.responseText = ExampleData.example_data; - }, - responseTime: 0 -}); - -$(function() { - $('#tree1').tree({ - buttonLeft: false, - autoOpen: 0, - slide: true - }); -}); diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js deleted file mode 100644 index eb8e429d..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js +++ /dev/null @@ -1,32 +0,0 @@ -$(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( - '<a href="#node-'+ node.id +'" class="edit" data-node-id="'+ node.id +'">edit</a>' - ); - } - }); - - // 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); - } - } - ); -}); diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/drag_and_drop.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/drag_and_drop.js deleted file mode 100644 index d638b0c3..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/drag_and_drop.js +++ /dev/null @@ -1,15 +0,0 @@ -$.mockjax({ - url: '*', - response: function(options) { - this.responseText = ExampleData.example_data; - }, - responseTime: 0 -}); - -$(function() { - var $tree = $('#tree1'); - $tree.tree({ - dragAndDrop: true, - autoOpen: 0 - }); -}); diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/icon_buttons.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/icon_buttons.js deleted file mode 100644 index a7b27fcc..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/icon_buttons.js +++ /dev/null @@ -1,14 +0,0 @@ -$.mockjax({ - url: '*', - response: function(options) { - this.responseText = ExampleData.example_data; - }, - responseTime: 0 -}); - -$(function() { - $('#tree1').tree({ - closedIcon: $('<i class="fa fa-arrow-circle-right"></i>'), - openedIcon: $('<i class="fa fa-arrow-circle-down"></i>') - }); -}); diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data.js deleted file mode 100644 index 6062f2c6..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data.js +++ /dev/null @@ -1,21 +0,0 @@ -$(function() { - var data = [ - { - name: 'node1', id: 1, - children: [ - { name: 'child1', id: 2 }, - { name: 'child2', id: 3 } - ] - }, - { - name: 'node2', id: 4, - children: [ - { name: 'child3', id: 5 } - ] - } - ]; - - $('#tree1').tree({ - data: data - }); -}); diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data_from_server.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data_from_server.js deleted file mode 100644 index 487e694f..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_json_data_from_server.js +++ /dev/null @@ -1,11 +0,0 @@ -$.mockjax({ - url: '*', - response: function(options) { - this.responseText = ExampleData.example_data; - }, - responseTime: 0 -}); - -$(function() { - $('#tree1').tree(); -}); diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_on_demand.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_on_demand.js deleted file mode 100644 index dec33d48..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/load_on_demand.js +++ /dev/null @@ -1,20 +0,0 @@ -$.mockjax({ - url: '*', - responseTime: 1000, - response: function(options) { - if (options.data && options.data.node) { - this.responseText = ExampleData.getChildrenOfNode(options.data.node); - } - else { - this.responseText = ExampleData.getFirstLevelData(); - } - } -}); - -$(function() { - var $tree = $('#tree1'); - - $tree.tree({ - saveState: true - }); -}); diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/multiple_select.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/multiple_select.js deleted file mode 100644 index 54ab18f3..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/multiple_select.js +++ /dev/null @@ -1,27 +0,0 @@ -$(function() { - var $tree = $('#tree1'); - $tree.tree({ - data: ExampleData.example_data, - autoOpen: true - }); - $tree.bind( - 'tree.click', - function(e) { - // Disable single selection - e.preventDefault(); - - var selected_node = e.node; - - if (selected_node.id == undefined) { - console.log('The multiple selection functions require that nodes have an id'); - } - - if ($tree.tree('isNodeSelected', selected_node)) { - $tree.tree('removeFromSelection', selected_node); - } - else { - $tree.tree('addToSelection', selected_node); - } - } - ); -}); diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/right-to-left.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/right-to-left.js deleted file mode 100644 index ffa506b1..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/right-to-left.js +++ /dev/null @@ -1,13 +0,0 @@ -$.mockjax({ - url: '*', - response: function(options) { - this.responseText = ExampleData.example_data; - }, - responseTime: 0 -}); - -$(function() { - $('#tree1').tree({ - rtl: true - }); -}); diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/save_state.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/save_state.js deleted file mode 100644 index 252bf368..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/save_state.js +++ /dev/null @@ -1,13 +0,0 @@ -$.mockjax({ - url: '*', - response: function(options) { - this.responseText = ExampleData.example_data; - }, - responseTime: 0 -}); - -$(function() { - $('#tree1').tree({ - saveState: true - }); -}); |