Class

RezSingleLayout

RezSingleLayout()

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.

View Source rez_view.js, line 587

Extends

Methods

# addContent(block)

Sets the single content block for this layout.

Parameters:
Name Type Description
block RezBlock

The content block

Overrides:

View Source rez_view.js, line 627

# bindAs() → {string}

Returns the binding name for this layout.

Overrides:

View Source rez_view.js, line 618

The block type as binding name

string

# copy() → {RezSingleLayout}

Creates a copy of this layout including its content.

Overrides:
  • RezLayout#copy

View Source rez_view.js, line 646

A new layout with copied content

# renderContents() → {string}

Renders the content block to HTML.

Overrides:

View Source rez_view.js, line 637

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

View Source rez_view.js, line 600