Typefi element variant definition
Go to Property Listing | Method Listing
addEventListener, apply, extractLabel, getElements, insertLabel, remove, removeEventListener, toSource, toSpecifier
Boolean, EventListeners, Events, Layer, Number, Object, String, TypefiFloatSpacingType, TypefiPageType,
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
read/write |
Float spacing type |
||
LongInteger |
read/write |
Floating layer. Can return: Layer, String or Long Integer. |
|
readonly |
The unique ID of the TypefiElementVariantDefinition. |
||
readonly |
The index of the TypefiElementVariantDefinition within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
read/write |
A property that can be set to any string. |
||
read/write |
Labels |
||
read/write |
Minimal floating distances |
||
read/write |
The name of the TypefiElementVariantDefinition. |
||
read/write |
Page type |
||
readonly |
The parent of the TypefiElementVariantDefinition (a TypefiElementDefinition). |
||
read/write |
A property that allows setting of several properties at the same time. |
||
read/write |
Variant id |
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined apply (pageItem:PageItem)
Applies an element variant to page item
Parameter |
Type |
Description |
---|---|---|
pageItem |
The page item that needs to be assigned the element type |
String extractLabel (key:String)
Gets the label value associated with the specified key.
Parameter |
Type |
Description |
---|---|---|
key |
The key. |
TypefiElementVariantDefinition getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
undefined remove ()
Deletes the TypefiElementVariantDefinition.
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the TypefiElementVariantDefinition.
String toSpecifier ()
Retrieves the object specifier.
TypefiElementPageItem.variantDefinition
Event.parent
EventListener.parent
MutationEvent.parent
TypefiElementDefinition.apply()
TypefiElementVariantDefinitions.add()
TypefiElementVariantDefinition.getElements()
TypefiElementVariantDefinitions.anyItem()
TypefiElementVariantDefinitions.everyItem()
TypefiElementVariantDefinitions.nextItem()
TypefiElementVariantDefinitions.previousItem()
TypefiElementVariantDefinitions.itemByID()
TypefiElementVariantDefinitions.item()
TypefiElementVariantDefinitions.[]()
TypefiElementVariantDefinitions.itemByName()
TypefiElementVariantDefinitions.itemByRange()
TypefiElementVariantDefinitions.firstItem()