Attribute
Sometimes we would like to use an attribution of an item. It is enough to use the attr feature to ensure that.
<div class="parent">
<a href="/about">About</div>
</div>
{
"link": {
"selector": "a",
"attr": "href"
},
}
// or use this shortcut
{
"link": "a @ href"
}{
"link": "/about"
}Multiple Attributes
All Attributes
Last updated
Was this helpful?