This page outlines the sequence of events in the instantiation of a Fluid component. Some of these events are the responsibility of the runtime, some, of the user, and some, of the Fluid framework. Setting up a Fluid componentDefining a component requires two steps: - Registering the component's default options with the framework by issuing a call to
fluid.defaults . - Defining a suitably namespaced creator function which constructs the component.
These two actions may be performed in any order, since none of the code in the creator function will execute until the component is instantiated. As well as general default options, fluid.defaults also sets up the structure for particularly meaningful component configuration such as events, DOM binding selectors and subcomponents. This section of the process is covered by the Fluid Component API page. |