Constructor
# new RezStackLayout()
A layout that holds a list of content blocks rendered in sequence.
Content blocks are rendered in order (or reversed order if layout_reverse
is set on the source) and joined with an optional separator.
Source element attributes:
layout_reverse: If true, new content is added to the frontlayout_separator: HTML string inserted between content blocks
Extends
Members
Methods
# addContent(block)
Adds a content block to the layout.
If reversed, adds to the front; otherwise adds to the back.
Parameters:
| Name | Type | Description |
|---|---|---|
block |
RezBlock
|
The content block to add |
- Overrides:
# bindAs() → {string}
Returns the binding name for this layout.
- Overrides:
The block type as binding name
string
# copy() → {RezStackLayout}
Creates a copy of this layout including all content blocks.
- Overrides:
- RezLayout#copy
A new layout with copied content
# renderContents() → {string}
Renders all content blocks to HTML.
Blocks are joined with the layout_separator if specified.
- Overrides:
Rendered content HTML
string
# static constructor(sourceName, source)
Creates a new RezStackLayout.
Parameters:
| Name | Type | Description |
|---|---|---|
sourceName |
string
|
The block type name |
source |
Object
|
The source element for this layout |