Class: ForBinding

lib/core/renderer/program/blocks.ForBinding(anchor, createInstance, blocks, locals, onBlockMountedopt)

Renders one copy of a block per list element, reconciled by key.

Constructor

new ForBinding(anchor, createInstance, blocks, locals, onBlockMountedopt)

Parameters:
Name Type Attributes Description
anchor Text

The op's anchor.

createInstance function

Builds a template instance for a block.

blocks Array:.<object:>

The program's block table.

locals object | null

The enclosing block's local bindings.

onBlockMounted function <optional>

Announces a mounted block.

Source:

Members

emptyRange :BlockRange|null

Type:
  • BlockRange | null
Source:

entries :Array:.<{key:: any:, range:: BlockRange:}>

Type:
  • Array:.<{key:: any:, range:: BlockRange:}>
Source:

Methods

dispose()

Releases every row and the empty block.

Source:

update(op, evaluate)

Renders the list.

Parameters:
Name Type Description
op object

The for op.

evaluate function

Evaluates an expression index against optional local bindings.

Source: