sridhars711 / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

More callbacks needed #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It migth be great to have more callbacks on nodes and on the tree, like
onclick (which is different from onselect), onrender etc.

In my case I want to add some extra features to the tree (checkboxes for
each nodes) and theses callbacks would have helped me.

Original issue reported on code.google.com by odiss...@gmail.com on 25 Nov 2008 at 3:04

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 17 Dec 2008 at 5:26

GoogleCodeExporter commented 9 years ago
Available callbacks:
    // Low level event handlers: onEvent(dtnode, event): return false, to stop default
processing
    onClick: null, // null: generate focus, expand, activate, select events.
    onDblClick: null, // (No default actions.)
    onKeydown: null, // null: generate keyboard navigation (focus, expand, activate).
    onKeypress: null, // (No default actions.)
    onFocus: null, // null: handle focus.
    onBlur: null, // null: handle unfocus.

    // Pre-event handlers onQueryEvent(flag, dtnode): return false, to stop processing
    onQueryActivate: null, // Callback(flag, dtnode) before a node is (de)activated.
    onQuerySelect: null, // Callback(flag, dtnode) before a node is (de)selected.
    onQueryExpand: null, // Callback(flag, dtnode) before a node is expanded/collpsed.

    // High level event handlers
    onActivate: null, // Callback(dtnode) when a node is activated.
    onDeactivate: null, // Callback(dtnode) when a node is deactivated.
    onSelect: null, // Callback(flag, dtnode) when a node is (de)selected.
    onExpand: null, // Callback(dtnode) when a node is expanded.
    onCollapse: null, // Callback(dtnode) when a node is collapsed.
    onLazyRead: null, // Callback(dtnode) when a lazy node is expanded for the first time.

Original comment by moo...@wwwendt.de on 14 Jan 2009 at 7:42

GoogleCodeExporter commented 9 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:12