APIs

Show:

Mixin containing handlers for flexberry-ddau-slider component's actions.

Item Index

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 String

    Path to a property, which value must be mutated on action.

  • e Object

    Action's event object.

    • newValue Object

      New value for a property, which value must be mutated on action.

    • originalEvent Object

      jQuery 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, {
                      });