Action filter
Calling an action just for a specific entity
To restrict a trigger only to certain entities you can put the entities inside of a pair of brackets at the end of the elb-action attribute. If the trigger event gets called the result will only include the property values from the specific entities.
1
<!-- setting a filter of an action -->
2
<div elb="foo" elb-foo="a:1">
3
<div elb="bar" elb-bar="b:2" elb-action="load:hello(bar)">
4
{
5
"action": "hello",
6
"entity": { "type": "bar", "data": { "b": 2 } },
7
"trigger": "load"
8
}
9
</div>
10
</div>
Copied!
Last modified 11mo ago
Copy link