fast framework Help

Node Scoping

purpose

Scope a DOM element and all of its descendants to a defined ffNode in ff's structure

usage

<div data-ffScope="path,to,scope"> <span data-ffText="name"></span> </div>

relative scopes

You can use relative scope notation in order to target nodes, without hardcoding their path in the template.

Possible values are:

value

resolves to

_root

root node

_parent

parent of the current node

_nextSibling

next sibling of current node

_previousSibling

previous sibling of current node

_firstSibling

first sibling of current node

_lastSibling

last sibling of current node

_firstChild

first child node of current node

_lastChild

last child node of current node

04 September 2024