MetabaseTreeList.NodeClick

Syntax

NodeClick: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The NodeClick event occurs on clicking a tree node.

Example

To execute the example the HTML page must contain the MetabaseTreeList component named list1 (see Example of Creating the MetabaseTreeList Component). Add a handler for the NodeClick event:

        list1.NodeClick.add(function (sender, args)
        {
            list1.setMultiSelect(false);
            console.log(list1.getPathToRoot(list1.getSelectedKeys()[0], false))
        })

After executing the example clicking a tree node disables multiple selection, and the browser console displays the array of metabase objects that include the selected object.

See also:

MetabaseTreeList