Versions Compared

Key

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

...

Section
Column
width50%

UIO

Code Block
javascript
javascript
/**
 * Define a grade including only desired panels
 */
fluid.defaults("my.panels", {
    components: {
        textSizer: {
            type: "fluid.uiOptions.textSizer",
            // any other configuration as necessary
        },
        lineSpacer: {
            type: "fluid.uiOptions.lineSpacer",
            // any other configuration as necessary
        }
    }
});
fluid.uiOptions(container, {
    gradeNames: ["my.panels"],
    pathToTemplates: "my/sites/lib/infusion/templates/",
    pathToTocTemplate: "my/sites/",
    siteThemeClassName: "foofer-doodle-theme"
});
Column

Page Enhancer

Code Block
javascript
javascript
/**
 * Define a grade including only desired enactors
 */
fluid.defaults("my.extra.settings", {
        textSize: {
            type: "fluid.uiOptions.enactor.textSizer",
            // any other configuration as necessary
        },
        textFont: {
            type: "fluid.uiOptions.enactor.classSwapper",
            // any other configuration as necessary
        }
    }
});
fluid.pageEnhancer({
    gradeNames: ["my.settings"],
    pathToTocTemplate: "my/sites/",
    siteThemeClassName: "foofer-doodle-theme"
});

...