Full Page UI Options
This documentation applies to v1.4 of UI Options.
For earlier versions, see
UI Options API.
Production Status: PREVIEW
The User Interface Options component (UI Options) works in conjunction with the User Interface Enhancer component (UI Enhancer) and the Fluid Skinning System (FSS) to adjust the user interface based on personal preferences:
- UI Options presents the user with controls for adjusting preferences.
- UI Enhancer is the engine that transforms pages according to the saved preferences.
The Full Page version of UI Options displays the UI Options controls in a standalone page.
See Also
Tutorial - Full Page UI Options
UI Options Instructional Demos
Full Page UI Options (with Preview)
Fat Panel UI Options
UI Enhancer
New in 1.4
(October, 2011)
The UI Options component has been completely refactored in version 1.4:
- The component is now available in three versions: Full Page, Full Page with Preview, and Fat Panel.
- The interface has been completely redesigned.
- The API has been updated.
Supported Events |
none |
---|---|
Methods |
none |
|
|
|
Creator
Use the following function to create a Full Page UI Options component:
Method |
|
---|---|
Description |
Instantiate a full-page version of the UI Options component, with no Preview. |
Parameters |
|
Returns |
The Full Page UI Options component |
Examples |
var myFullPageUIO = fluid.uiOptions.fullNoPreview("#myContainer", { prefix: "../../components/uiOptions/html/" }); |
Notes |
 |
See also |
Options
The second argument to the creator function is the options argument. This is a JavaScript object containing name/value pairs: The name is the name of the option and the value is the desired setting. Components define their own default values for options, but integrators can override these defaults by providing new values using the options argument. For technical information about how options are merged with defaults, see Options Merging.
var fullUIO = fluid.uiOptions.fullNoPreview(".myContainer", { <option1Name>: <option1value>, <option2Name>: <option2value> ... } });
The options supported by Full Page UI Options are described below.
prefix
Description |
The |
---|---|
Default |
"../html/" |
Example |
fluid.uiOptions.fullNoPreview("#myContainer", { prefix: "../../components/uiOptions/html/" }); |
Notes |
Note that if the Template Loader values do not use the |
See also |
Configurable Subcomponents
Configurable subcomponents can be configured though the parent component's options by passing a JavaScript object containing options for the subcomponent:
parent.component.name(".myContainer", { <subcomponentName>: { options: { <subcomponent options> } } });
To learn about the specific options for each subcomponent, visit the default implementation's API page, as described below.
layoutControls
Description |
The |
---|---|
Default implementation |
|
Example |
fluid.uiOptions.fullNoPreview(".myContainer", { layoutControls: { options: { listeners: { onUIOptionsRefresh: myRefreshListener } } } }); |
See also |
linksControls
Description |
The |
---|---|
Default implementation |
|
Example |
fluid.uiOptions.fullNoPreview(".myContainer", { linksControls: { options: { listeners: { onUIOptionsRefresh: myRefreshListener } } } }); |
See also |
templateLoader
Description |
The |
---|---|
Default implementation |
|
Example |
fluid.uiOptions.fullNoPreview(".myContainer", { templateLoader: { options: { templates: { linksControls: "../templates/CustomLinksTemplate.html" } } } }); |
See also |
textControls
Description |
The |
---|---|
Default implementation |
|
Example |
fluid.uiOptions.fullNoPreview(".myContainer", { textControls: { options: { listeners: { onUIOptionsRefresh: myRefreshListener } } } }); |
See also |
uiOptions
Description |
The |
---|---|
Default implementation |
|
Example |
fluid.uiOptions.fullNoPreview(".myContainer", { uiOptions: { options: { autoSave: false } } }); |
See also |