Class

RezStackLayout

RezStackLayout()

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 front
  • layout_separator: HTML string inserted between content blocks

View Source rez_view.js, line 664

Extends

Members

boolean

# reversed

Whether content should be added in reverse order.

View Source rez_view.js, line 708

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:

View Source rez_view.js, line 719

# bindAs() → {string}

Returns the binding name for this layout.

Overrides:

View Source rez_view.js, line 699

The block type as binding name

string

# copy() → {RezStackLayout}

Creates a copy of this layout including all content blocks.

Overrides:
  • RezLayout#copy

View Source rez_view.js, line 750

A new layout with copied content

# renderContents() → {string}

Renders all content blocks to HTML.

Blocks are joined with the layout_separator if specified.

Overrides:

View Source rez_view.js, line 736

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

View Source rez_view.js, line 681