This documentation is currently being moved to our new documentation site.

Please view or edit the documentation there, instead.

If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Component Grades

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

fluid.defaults("fluid.uploader.html5Strategy", {
    gradeNames: ["fluid.littleComponent", "autoInit"],
    components: {
        local: {
        }
        remote: {
        }
    }
});
  • No labels