Alias source
Models a label alias in a component sheet (serialization).
Specializes Montage
A component can expose internal components to external usage using aliases.
For example, a Repetition exposes
@repetition:iteration
and a table might expose the current cell as
@table:cell
, aliasing the internal @cells:iteration
.
An alias declaration in a component sheet (serialization) looks like:
{
":cell": {
"alias": "repetition:iteration"
}
}
An Alias
is a representation of one of these declarations.
An alias can only point to another template property and can be optionally
followed by a path.
Properties
-
componentName :string <readonly> source
-
The component name part of the alias, this is the component where the template property is located. Derived from the alias.
-
propertyName :string <readonly> source
-
The property name of the template property. It's up to the component template to define this property. Derived from the alias.
-
value :string source
-
The alias string as found in the serialization.
Methods
-
callDelegateMethod(name) source
-
This method calls the method named with the identifier prefix if it exists. Example: If the name parameter is "shouldDoSomething" and the caller's identifier is "bob", then this method will try and call "bobShouldDoSomething"
Parameters:
Name Type Description name
string Inherited From: -
equals(anObject) → {boolean} source
-
Returns true if two objects are equal, otherwise returns false.
Parameters:
Name Type Description anObject
Object The object to compare for equality.
Inherited From: Returns: boolean
Returns
true
if the calling object andanObject
are identical and theiruuid
properties are also equal. Otherwise, returnsfalse
.
Generated from a4679af