# Tree.js - Binding Options - Custom Triggers: Below is a list of all the custom triggers supported in the "data-tree-options" binding attribute for DOM elements.

## For Rendering: ### options.onRefresh( *element* ): Fires when a rendered element is refreshed.
***Parameter:*** element: '*Object*' - The element that was refreshed.
### options.onDestroy( *element* ): Fires when the element is destroyed (reverted to its original state).
***Parameter:*** element: '*object*' - The DOM element that was destroyed. ### options.onBeforeRenderComplete( *element* ): Fires before the rendering an element.
***Parameter:*** element: '*object*' - The DOM element that is going to be rendered. ### options.onRenderComplete( *element* ): Fires when the rendering of an element is complete.
***Parameter:*** element: '*object*' - The DOM element that was rendered.

## For Clicking: ### options.onBoxClick( *boxDetails* ): Fires when a box is clicked.
***Parameter:*** boxDetails: '*Object*' - The details of the box that was clicked.

## For Category Selections: ### options.onBackCategory( *category* ): Fires when the category is moved back.
***Parameter:*** category: '*string*' - The category that is now being viewed. ### options.onNextCategory( *category* ): Fires when the category is moved forward.
***Parameter:*** category: '*string*' - The category that is now being viewed.
### options.onSetCategory( *category* ): Fires when the category is manually set.
***Parameter:*** category: '*string*' - The category that is now being viewed.

## Binding Example: ```markdown
Your HTML.
```