If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.
DRAFT; still incomplete
One of the primary functions of the Infusion Preferences Framework is to allow you to create a Preferences Editor: a collection of adjusters that users can use to set their interface preferences.
The Preferences Framework provides a utility that creates and instantiates a preferences editor in a single step, given primary and auxiliary schemas.
var prefsEditor = fluid.prefs.create(<container>, <config>);
| (Object) The configuration options for the builder. See Options below for more information. |
var prefsEditor = fluid.prefs.create({ build: <options> });
Object | (Object) The preferences editor instance. |
Name | Description | Values | Default |
---|---|---|---|
gradeNames | (Optional) A list of grade names to be used for the builder. This option can be used to specify the names of grades that define schemas, as an alternative to specifying the schemas through the direct options. If you do not provide the | Array of strings | none |
primarySchema | (Optional) A JavaScript object providing primary schema details. See Processing the Schemas below for more details. | Object |
|
auxiliarySchema | (Optional) A JavaScript object providing auxiliary schema details. See Processing the Schemas below for more details. If you do not specify the grade name of a grade that includes an auxiliary schema, you must include this option. | Object |
|
NOTE: You must provide at least one of
auxiliarySchema
option, orgradeName
indicating an auxiliary schema.If you provide both, they will be merged (with the auxiliarySchema
overriding anything in the grade schema), but you must provide at least one.
The simplest way to create a preferences editor is to provide the primary and auxiliary schema using the options:
var prefsEditor = fluid.prefs.create({ build: { primarySchema: {...}, auxiliarySchema: {...} } });
The preferences editor will be instantiated and rendered ...