APIs

Show:

Mixin containing logic making available dynamic actions for those components, which consumes their inner structure as JSON-object or Ember-object and there is no way to attach action handlers for their nested component's explicitly in hbs-markup.

Methods

_actionHandlerIsDefined

(
  • options
)
Boolean private

Returns flag, indicating whether action handler is defined, for action with the specified name, or not.

Parameters:

  • options Object

    Method options

    • actionName String

      Name of component's action for which handler's existence this method should check.

Returns:

Boolean:

Flag, indicating whether action handler is defined, for action with the specified name, or not.

Properties

_dynamicActions

Object private

Component's dynamic actions from DynamicActionsMixin:dynamicActions:property, mapped from array into flat JSON-object.

dynamicActions

DynamicActionObject[]

Component's dynamic actions. If component consumes it's inner structure as JSON-object or Ember-object and there is no way to attach action handlers explicitly in hbs-markup, then you can define dynamic actions somewhere in code & pass defined array into this component's property.

Default: null