FlexberryDdauCheckboxActionsHandlerMixin Class
Extends Mixin
Module: ember-flexberry
Mixin containing handlers for flexberry-ddau-checkbox component's actions.
Item Index
Methods
Methods
actions.onCheckboxChange
(
-
mutablePropertyPath
-
e
Handles flexberry-ddau-checkbox component's 'change' action. It mutates value of property with given name to value of action's event object 'newValue' property.
Parameters:
-
mutablePropertyPath
StringPath to a property, which value must be mutated on action.
-
e
ObjectAction's event object.
-
newValue
ObjectNew value for a property, which value must be mutated on action.
-
originalEvent
ObjectjQuery event object which describes checkbox input's 'change' event.
-
Example:
templates/my-form.hbs
{{flexberry-ddau-checkbox
value=model.flag
change=(action "onCheckboxChange" "model.flag")
}}
controllers/my-form.js
import Controller from '@ember/controller';
import FlexberryDdauCheckboxActionsHandlerMixin from 'ember-flexberry/mixins/flexberry-ddau-checkbox-actions-handler';
export default Controller.extend(FlexberryDdauCheckboxActionsHandlerMixin, {
});