diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-21 12:49:18 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-21 12:49:18 -0400 |
| commit | b28028ac4082842143b0f528d6bc539da6ccb419 (patch) | |
| tree | 1e26ea969a781ed8e323fca4e3c76345113fc694 /www/lib/vis/examples/timeline/editing/individualEditableItems.html | |
| parent | 676270d21beed31d767a06c89522198c77d5d865 (diff) | |
mega changes, including updates and X
Diffstat (limited to 'www/lib/vis/examples/timeline/editing/individualEditableItems.html')
| -rw-r--r-- | www/lib/vis/examples/timeline/editing/individualEditableItems.html | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/www/lib/vis/examples/timeline/editing/individualEditableItems.html b/www/lib/vis/examples/timeline/editing/individualEditableItems.html new file mode 100644 index 00000000..d6210305 --- /dev/null +++ b/www/lib/vis/examples/timeline/editing/individualEditableItems.html @@ -0,0 +1,58 @@ +<!DOCTYPE HTML> +<html> +<head> + <title>Timeline | Individual editable items</title> + + <style> + body, html { + font-family: arial, sans-serif; + font-size: 11pt; + } + + div.vis-editable, + div.vis-editable.vis-selected { + /* custom styling for editable items... */ + } + + div.vis-readonly, + div.vis-readonly.vis-selected { + /* custom styling for readonly items... */ + background-color: #ff4500; + border-color: red; + color: white; + } + </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> + +<p>Specify individual items to be editable or readonly.</p> + +<div id="visualization"></div> + +<script> + // create a DataSet with items + var items = new vis.DataSet([ + {id: 1, content: 'Editable', editable: true, start: '2010-08-23'}, + {id: 2, content: 'Editable', editable: true, start: '2010-08-23T23:00:00'}, + {id: 3, content: 'Read-only', editable: false, start: '2010-08-24T16:00:00'}, + {id: 4, content: 'Read-only', editable: false, start: '2010-08-26', end: '2010-09-02'}, + {id: 5, content: 'Editable', editable: true, start: '2010-08-28'}, + {id: 6, content: 'Read-only', editable: false, start: '2010-08-29'}, + {id: 7, content: 'Editable', editable: true, start: '2010-08-31', end: '2010-09-03'}, + {id: 8, content: 'Read-only', editable: false, start: '2010-09-04T12:00:00'} + ]); + + var container = document.getElementById('visualization'); + var options = { + editable: true // default for all items + }; + + var timeline = new vis.Timeline(container, items, options); + +</script> +</body> +</html>
\ No newline at end of file |
