FlexberryTreenodeActionsHandlerMixin Class
Extends Mixin
Module: ember-flexberry
Mixin containing handlers for flexberry-treenode component's actions.
Item Index
Methods
actions.onTreenodeBeforeCollapse
(
-
e
Parameters:
-
e
ObjectAction's event object.
-
originalEvent
ObjectjQuery event object which describes event that triggers node's collapsing.
-
Example:
templates/my-form.hbs
{{flexberry-treenode
caption="Tree node"
beforeCollapse=(action "onTreenodeBeforeCollapse")
}}
controllers/my-form.js
import Controller from '@ember/controller';
import FlexberryTreenodeActionsHandlerMixin from 'ember-flexberry/mixins/flexberry-treenode-actions-handler';
export default Controller.extend(FlexberryTreenodeActionsHandlerMixin, {
});
actions.onTreenodeBeforeExpand
(
-
e
Parameters:
-
e
ObjectAction's event object.
-
originalEvent
ObjectjQuery event object which describes event that triggers node's expanding.
-
Example:
templates/my-form.hbs
{{flexberry-treenode
caption="Tree node"
beforeExpand=(action "onTreenodeBeforeExpand")
}}
controllers/my-form.js
import Controller from '@ember/controller';
import FlexberryTreenodeActionsHandlerMixin from 'ember-flexberry/mixins/flexberry-treenode-actions-handler';
export default Controller.extend(FlexberryTreenodeActionsHandlerMixin, {
});
actions.onTreenodeHeaderClick
(
-
e
Parameters:
-
e
ObjectAction's event object.
-
originalEvent
ObjectjQuery event object which describes event that triggers node's 'headerClick' action.
-
Example:
templates/my-form.hbs
{{flexberry-treenode
caption="Tree node"
headerClick=(action "onTreenodeHeaderClick")
}}
controllers/my-form.js
import Controller from '@ember/controller';
import FlexberryTreenodeActionsHandlerMixin from 'ember-flexberry/mixins/flexberry-treenode-actions-handler';
export default Controller.extend(FlexberryTreenodeActionsHandlerMixin, {
});