Class

RezBlockTransformer

RezBlockTransformer()

Constructor

# new RezBlockTransformer()

Transformer that links DOM elements to their corresponding card objects.

Operates on <div class="card" data-card="..."> elements, adding a rez_card property that references the actual card object.

View Source rez_view.js, line 917

Extends

Methods

# transformElement(elem, view)

Links the element to its card object.

Parameters:
Name Type Description
elem Element

The DOM element with data-card attribute

view RezView

The view being transformed

Overrides:

View Source rez_view.js, line 942

# static constructor()

Creates a new RezBlockTransformer.

View Source rez_view.js, line 927