For convenience, sometimes you need to control the order in which
events are wired to the page. The usual examples are when you wish to
add validators or do something to new elements after they are added to the
page. Nitrogen provides 3 priority levels for these kinds of events:
- eager: Eager events are executed first and are called with
wf:eager
- normal: Normal events are executed second and are called with
wf:wire
- defer: Deferred events are executed last and are called with
wf:defer
The demonstration on the right will show you how you can control the
order of execution on the
client for events wired from the
server.
View Module Source