Extends
- ember/Component
Members
(inner) layout :Object
Type:
- Object
- Source:
(inner, nullable) observedParameters :Array
Filtered array of parameters passed to this component
Only contains those that are a number that begin with "$" and are to be bound to
Type:
- Array
- Default Value:
- null
- Source:
(inner, nullable) parameters :Array
Filtered array of parameters passed to this component
Only contains those that are a number that begin with "$" and also do not end in "Binding"
Type:
- Array
- Default Value:
- null
- Source:
(inner) tagName :String
Type:
- String
- Default Value:
- 'span'
- Source:
(inner, nullable) translatedString :String
Translated string
Type:
- String
- Default Value:
- null
- Source:
(inner) translateService :ember/Service
Translation Service, used to translate content
Type:
- ember/Service
- Source:
Methods
(inner) extractParameterKeys() → {undefined}
Filter passed parameters on initialization
- Source:
Listens to Events:
- event:init
Returns:
- Type
- undefined
(inner) registerObservers() → {undefined}
Register observers on filtered parameter list
The reason observers have to be manually (de)registered rather than calling .property() on translateString() is because in order to support token replacement within a tranlsation string a user needs to be able to pass in a variable amount of (potentially) bound properties. There is not a way to specify such a dynamic list of properties in a .property() call.
- Source:
Listens to Events:
- event:willInsertElement
Returns:
- Type
- undefined
(inner) setTranslatedString() → {undefined}
Set translated string value on property used by template
- Source:
Returns:
- Type
- undefined
(inner) translateString() → {String}
Translate provided key
Supports
- singular/plural string substitution
- replacement of placeholder tokens in translation strings with passed parameters
- Source:
Returns:
- Type
- String
(inner) unregisterObservers() → {undefined}
Remove observers on filtered parameter list
- Source:
Listens to Events:
- event:willClearRender
Returns:
- Type
- undefined