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.

<!-- setting a filter of an action -->
<div elb="foo" elb-foo="a:1">
<div elb="bar" elb-bar="b:2" elb-action="load:hello(bar)">
{
"action": "hello",
"entity": { "type": "bar", "data": { "b": 2 } },
"trigger": "load"
}
</div>
</div>