InstancesEventListener addEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Adds an event listener.
| Parameter | Type | Description |
| eventType | string | The event type. |
| handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
| captures | bool | This parameter is obsolete. (Optional) (default: false) |
Array of ContentPlacerObject getElements ()
Resolves the object specifier, creating an array of object references.
void load (pageItems:
Array of PageItem[, linkPageItems:
bool=false][, linkStories:
bool=false][, mapStyles:
bool=false][, showingOptions:
bool=false])
Load the Content Placer with one or more objects.
| Parameter | Type | Description |
| pageItems | Array of PageItem | One or more page items to place or load |
| linkPageItems | bool | Whether to link pageItems in content placer (if true it will override link stories value) (Optional) (default: false) |
| linkStories | bool | Whether to link stories in content placer (only applicable for single story, pageItem links will also be created in case of more than one item) (Optional) (default: false) |
| mapStyles | bool | Whether to map styles in content placer (Optional) (default: false) |
| showingOptions | bool | Whether to display the link options dialog (Optional) (default: false) |
bool removeEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Removes the event listener.
| Parameter | Type | Description |
| eventType | string | The registered event type. |
| handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
| captures | bool | This parameter is obsolete. (Optional) (default: false) |
string toSource ()
Generates a string which, if executed, will return the ContentPlacerObject.
string toSpecifier ()
Retrieves the object specifier.
|