Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Add information about default initialization functions, etc
Code Block
javascript
javascript
fluid.defaults("fluid.uploader.fileQueueView", {
    gradeNames: ["fluid.viewComponent", "autoInit"],
    ...
});
Note
titleTo Do

There are three typical lifecycle points in an autoInit component. The only "grade" to make use of any of them is "fluid.modelComponent". "fluid.modelComponent" specifies the preInitFunction to set the model and applier used by the component.

Manually

Developers may choose to write their own component creator function for their graded component. If they do, the first thing their creator function should do is call the appropriate initialization function, assigning the returned object and continuing to configure it as desired (for example, to add methods to it).

...