DEMOS / Priority Wiring

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:

  1. eager: Eager events are executed first and are called with wf:eager
  2. normal: Normal events are executed second and are called with wf:wire
  3. 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
Copyright © 2008-2024 Nitrogen Web Framework. Released under the MIT License.