Skip to content
Martin edited this page Sep 13, 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 dta format, so it mght not be the most efficient way to pass data.
    2. source: <Ajax options>
    3. source: <NodeData array>
    4. source: <$.Promise>
    5. 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