Class Layout
Abstract controller for layout controllers.
Implements functionality to add and remove items to the layout.
Subclass to implement specific client behavior.
Constructor
-
class Layout()
Methods
add
-
Layout#add(content, options[, callback])
Arguments: |
- content (Object|String) – the component or markup to insert
- content.id (String) – the component id
- content.version (String) – the component version
- content.view (String) – the component view id
- content.sid (String) – the component staticId id
- content.context (Object) – custom data for the component
- content.placeholder (Boolean) – enable / disable placeholder
- options (Object) – specific configuration for the content’s item block
- callback (Function) – a function that will be called after the content was added
|
Adds content to the layout.
remove
-
Layout#remove(options)
Arguments: |
- options (Object) – configuration to identify the item block to be removed
|
Removes an item from the layout.