Versions Compared


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


A component "grade" is a type definition, or a name for a particular block of material that is supplied to fluid.defaults which is merged with the creator-specific block of defaults for a particular component. Component grades offer no runtime effect of a component, but does enable reliable and readable construction of a component after instantiation. The "autoInit" grade tells the IoC framework to automatically resolve the component from the inferred graded material without the need to write the component's actual creator function.

Available Grades

The current framework supports the following grades:

How to use component grades

Code Block

fluid.defaults("fluid.uploader.html5Strategy", {
    gradeNames: ["fluid.littleComponent", "autoInit"],
    components: {
        local: {
        remote: {