Constructor
# new RezSingleLayout()
A layout that holds exactly one content block.
Use this layout when you need to wrap a single piece of content with a layout template.
Extends
Methods
# addContent(block)
Sets the single content block for this layout.
Parameters:
| Name | Type | Description |
|---|---|---|
block |
RezBlock
|
The content block |
- Overrides:
# bindAs() → {string}
Returns the binding name for this layout.
- Overrides:
The block type as binding name
string
# copy() → {RezSingleLayout}
Creates a copy of this layout including its content.
- Overrides:
- RezLayout#copy
A new layout with copied content
# renderContents() → {string}
Renders the content block to HTML.
- Overrides:
Rendered content HTML
string
# static constructor(sourceName, source)
Creates a new RezSingleLayout.
Parameters:
| Name | Type | Description |
|---|---|---|
sourceName |
string
|
The block type name |
source |
Object
|
The source element for this layout |