数据格式

自定义事件

Event Type

Description

selected.tree.amui

Fires when a user selects an item or folder. Returns an object containing an array of the selected items' jQuery data and the jQuery data of the triggering item. { selected: [array], target: [object] }

deselected.tree.amui

Fires when a user deselects an item or folder. Returns an object containing an array of the selected items' jQuery data and the jQuery data of the triggering item. { selected: [array], target: [object] }

loaded.tree.amui

Fires when sub-content has been is loaded. Returns the jQuery element of the folder loaded.

Fires when a user opens a folder. Returns an object containing the jQuery data of the opened folder.

closed.tree.amui

Fires when a user closes a folder. Returns an object containing the jQuery data of the closed folder.

closedAll.tree.amui

Fires when all folders have finished closing. Returns an object containing an array of closed folders' jQuery data and the tree's jQuery element. The length of reportedClosed will provide the number of folders closed. { reportedClosed: [array], tree: [$element] }

disclosedVisible.tree.amui

Fires when all visible folders have disclosed/opened. Returns an object containing an array of disclosed folders' jQuery data and the tree's jQuery element. The length of reportedOpened will provide the number of folders opened. { reportedOpened: [array], tree: [$element] }