Browse Source

Added a warning to the custom order example

v3_develop
jos 9 years ago
parent
commit
c76de8a341
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      examples/timeline/35_item_ordering.html

+ 5
- 3
examples/timeline/35_item_ordering.html View File

@ -25,10 +25,12 @@
<p> <p>
To display and stack the items in a controlled order, you can provide a To display and stack the items in a controlled order, you can provide a
custom sorting function via the configuration option <code>order</code>. custom sorting function via the configuration option <code>order</code>.
This is only suitable for relatively small amounts of items, as it forces
the Timeline to order and re-stack all items with every redraw.
</p> </p>
<p>
WARNING: Custom ordering is only suitable for small amounts of items (up to a few
hundred), as the Timeline has to render <i>all</i> items once on load to
determine their width and height.
</p>
<p> <p>
<label for="ordering"><input type="checkbox" id="ordering" checked/> Apply custom ordering. Order items by their id.</label> <label for="ordering"><input type="checkbox" id="ordering" checked/> Apply custom ordering. Order items by their id.</label>
</p> </p>

Loading…
Cancel
Save