FlexberryDdauSliderActionsHandlerMixin Class
Extends Mixin
Module: ember-flexberry
Mixin containing handlers for flexberry-ddau-slider component's actions.
Item Index
Methods
Methods
actions.onSliderChange
(
-
mutablePropertyPath
-
e
Handles flexberry-ddau-slider 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-slider
value=model.opacity
change=(action "onSliderChange" "model.opacity")
}}
controllers/my-form.js
import Controller from '@ember/controller';
import FlexberryDdauSliderActionsHandlerMixin from 'ember-flexberry/mixins/flexberry-ddau-slider-actions-handler';
export default Controller.extend(FlexberryDdauSliderActionsHandlerMixin, {
});