Browse Source

Fixed #503: Docs on the item property `subgroup` missing.

v3_develop
jos 9 years ago
parent
commit
90b8e3ef2f
2 changed files with 20 additions and 10 deletions
  1. +18
    -8
      docs/timeline.html
  2. +2
    -2
      examples/timeline/30_subgroups.html

+ 18
- 8
docs/timeline.html View File

@ -245,6 +245,16 @@ var items = [
example <code>"color: red; background-color: pink;"</code>.
</td>
</tr>
<tr>
<td>subgroup</td>
<td>String | Number</td>
<td>none</td>
<td>The id of a subgroup.
Groups all items within a group per subgroup, and positions them on the
same height instead of staking them on top of each other. can be ordered
by specifying the option <code>subgroupOrder</code> of a group.
</td>
</tr>
<tr>
<td>title</td>
<td>String</td>
@ -339,6 +349,14 @@ var groups = [
example <code>"color: red; background-color: pink;"</code>.
</td>
</tr>
<tr>
<td>subgroupOrder</td>
<td>String | Function</td>
<td>none</td>
<td>Order the subgroups by a field name or custom sort function.
By default, groups are ordered by first-come, first-show.
</td>
</tr>
<tr>
<td>title</td>
<td>String</td>
@ -347,14 +365,6 @@ var groups = [
The title can only contain plain text.
</td>
</tr>
<tr>
<td>subgroupOrder</td>
<td>String | Function</td>
<td>none</td>
<td>Order the subgroups by a field name or custom sort function.
By default, groups are ordered by first-come, first-show.
</td>
</tr>
</table>

+ 2
- 2
examples/timeline/30_subgroups.html View File

@ -61,11 +61,11 @@
var container = document.getElementById('visualization');
var options = {
// orientation:'top'
start: '2014-01-10',
end: '2014-02-10',
editable: true,
stack: false,
// orientation:'top'
stack: false
};
var timeline = new vis.Timeline(container, items, groups, options);

Loading…
Cancel
Save