Skip to content
Martin@MBP edited this page Nov 30, 2013 · 41 revisions

About initializing Fancytree and implementing lazy loading.

This Page is Work In Progress!

Load Tree Data

  • Link to demo page
  • Show different formats:
    1. Use UL / LI.
      Note that this will be parsed and converted to the internal data format, so it is not the most efficient way to pass data.
      If Javascript is not available however, the UL markup will still be visible to the user.
    2. source: <Ajax options>
  1. source: <NodeData array>
  2. source: {key1: val1, ..., children: <NodeData array>} 2. source: <$.Promise> 2. source: <callback function>
  • Mention tree.reload() and node.reload()
  • Sample for JS object Which properties go to 'node.NAME'? All others are stored as 'node.data.NAME'
  • Sample for
    Lazy loading
    • Link to demo page
    • Mention that format is same as 'source'
    • If node.lazy is true and node.children is null or undefined, the lazyload event is triggered. Note that a handler can return an empty array ([]) in order to mark the node as 'no children available'. It then becomes a standard end-node which is not expandable.

    Lazy Loading Sequence Diagram Fancytree lazy loading

Clone this wiki locally