UIOptions Endgame

Cheetham, Anastasia acheetham at ocad.ca
Tue Jul 26 16:51:09 UTC 2011


On 2011-07-22, at 5:01 PM, Cheetham, Anastasia wrote:

> I've been writing customizations of UI Options for the documentation

Yet another candidate for simplification:

    Customizing a site's default settings

This requires passing options to the UI Enhancer's settingsStore subcomponent:

fluid.pageEnhancer({
    components: {
        settingsStore: {
            options: {
                defaultSiteSettings: {
                    textFont: "comic",
                    theme: "yb",
                    textSize: 1.5,
                    lineSpacing: 1.3,
                    links: true,
                    inputsLarger: true
                }
            }
        }
    }
});                

See https://github.com/acheetham/Infusion-Instructional-Demos/blob/master/src/webapp/demos/instructional/uiOptions/html/fullNoPreview-customDefaultSiteSettings.html for the full implementation.

-- 
Anastasia Cheetham     Inclusive Design Research Centre
acheetham at ocad.ca            Inclusive Design Institute
                                        OCAD University



More information about the fluid-work mailing list