Many commands in Nitrogen take a parameter to specify which element or elements to target. In Nitrogen 1.x, these commands took a single ElementID, and could only act upon one element at a time.
Beginning with Nitrogen 2.x, Nitrogen allows you to use the full power of jQuery selectors to reference elements.
This demo shows how to use jQuery selectors to target multiple
elements with a single #event{}
action. The same
principles apply to calls to wf:wire/N
,
wf:update/2
, etc.
See jQuery selector documentation for more information on jQuery selectors.
View Module Source
wf:wire(TargetPath, ...actions...)
wf:wire(TriggerPath, TargetPath, ...actions...)
#event { target=TargetPath }
#event { trigger=TriggerPath, target=TargetPath }
TriggerPath and TargetPath can be in the following forms: