ArrayHelper Class
Extends Helper
Usage:
templates/my-form.hbs
`
handlebars
{my-component availableItems=(array 1 "two" 3 "four" 5)}
`
Following array will be passed to component's 'availableItems' property: 1, 'two', 3, 'four', 5.
Defined in:
Module: ember-flexberry
addon/helpers/array.js:8
Array helper. Wraps given arguments into Ember.NativeArray through a call to A function.
Item Index
Methods
Methods
compute
(
Ember.NativeArray(https://emberjs.com/api/ember/release/classes/Ember.NativeArray)
-
args
Overridden Helper compute method. Executes helper's logic, returns arguments wrapped into array.
Parameters:
-
args
AnyArguments passed to helper, which must be wrapped into Ember.NativeArray.
Returns:
Ember.NativeArray(https://emberjs.com/api/ember/release/classes/Ember.NativeArray):
Wrapped arguments.