diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-27 12:42:48 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-27 12:42:48 -0400 |
| commit | 210e8feae2fb4842bfb2de38666e6c41671fef3c (patch) | |
| tree | cbdafa34b1a6260bb20236d7e9de9eb1b690a1c5 /www/lib/vis/examples/timeline/interaction/setSelection.html | |
| parent | e7e7baeaad90229ccb3e0f45f4ebd77be7d79b14 (diff) | |
removed lib
Diffstat (limited to 'www/lib/vis/examples/timeline/interaction/setSelection.html')
| -rw-r--r-- | www/lib/vis/examples/timeline/interaction/setSelection.html | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/www/lib/vis/examples/timeline/interaction/setSelection.html b/www/lib/vis/examples/timeline/interaction/setSelection.html deleted file mode 100644 index f6a038ce..00000000 --- a/www/lib/vis/examples/timeline/interaction/setSelection.html +++ /dev/null @@ -1,66 +0,0 @@ -<!DOCTYPE HTML> -<html> -<head> - <title>Timeline | Select items</title> - - <style> - body, html { - font-family: arial, sans-serif; - font-size: 11pt; - } - </style> - - <script src="../../../dist/vis.js"></script> - <link href="../../../dist/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" /> - <script src="../../googleAnalytics.js"></script> -</head> -<body> -<h1>Set selection</h1> -<p style="max-width: 600px;"> - Enter one or multiple ids of items, then press select to select the items. This demo uses the function <code>Timeline.setSelection(ids)</code>. Optionally, the window can be moved to the selected items. -</p> - -<p> - Select item(s): <input type="text" id="selection" value="5, 6"><input type="button" id="select" value="Select"><br> - <label><input type="checkbox" id="focus" checked> Focus on selection</label> -</p> -<div id="visualization"></div> - -<script> - // create a dataset with items - // we specify the type of the fields `start` and `end` here to be strings - // containing an ISO date. The fields will be outputted as ISO dates - // automatically getting data from the DataSet via items.get(). - var items = new vis.DataSet({ - type: { start: 'ISODate', end: 'ISODate' } - }); - - // add items to the DataSet - items.add([ - {id: 1, content: 'item 1<br>start', start: '2014-01-23'}, - {id: 2, content: 'item 2', start: '2014-01-18'}, - {id: 3, content: 'item 3', start: '2014-01-21'}, - {id: 4, content: 'item 4', start: '2014-01-19', end: '2014-01-24'}, - {id: 5, content: 'item 5', start: '2014-01-28', type:'point'}, - {id: 6, content: 'item 6', start: '2014-01-26'} - ]); - - var container = document.getElementById('visualization'); - var options = { - editable: true - }; - - var timeline = new vis.Timeline(container, items, options); - - var selection = document.getElementById('selection'); - var select = document.getElementById('select'); - var focus = document.getElementById('focus'); - select.onclick = function () { - var ids = selection.value.split(',').map(function (value) { - return value.trim(); - }); - timeline.setSelection(ids, {focus: focus.checked}); - }; -</script> -</body> -</html>
\ No newline at end of file |
