Dynamic field values
You might want to measure dynamic field values e.g. if you want to tag the quantity of how many times a product is added to basket or the current content of an element. Use a # at the beginning followed by the attributes name to get access to the value of the elements attribute.
1
<!-- Basic usage: elb-<entity>="<text>:#<value>" -->
2
<input type="text" value="text" elb-entity="dynamic:#value"></input>
3
<div elb-entity="text:#innerHTML">inner</div>
Copied!
To capture a selected option from a list use elb-<entity> ="<text>: #selected":
1
<select elb-entity="option:#selected">
2
<option value="foo">foo</option>
3
<option value="bar" selected="selected">bar</option>
4
<option value="baz">baz</option>
5
</select>
Copied!
Last modified 4mo ago
Copy link