Navigation and Hyperlinks
Setting hrefs for internal navigation in ff can be a bit tricky: Since presenters should be context agnostic, hard coding internal hyperlinks is not recommended as it would break the reusability. Also, ff controls if links can be shown as pretty urls based on configuration and server capabilities.
The data-ffLink attribute solves this
purpose
Setting internal hyperlinks
usage
<a data-ffLink></a>
This will add a href that links to the current node.
You can link to any node in the tree by specifying it in trace path notation
<a data-ffLink="path,to,node"></a>
Scope attribute may also be a relative selector.
To distinguish it from a any other node, relative selector needs to start with an underscore.
<a data-ffLink="_nextSibling"></a>
options
{
"scope" : null // link to current node
"_root" // link to root node
"_parent" // link to parent node
"_nextSibling" // link to next sibling node
"_previousSibling" // link to previous sibling node
"_firstSibling" // link to first sibling node
"_lastSibling" // link to last sibling node
"_firstChild" // link to first child node
"_lastChild" // link to last child node
}
19 März 2024