...
Section |
---|
Column |
---|
UIO Only Code Block |
---|
|
fluid.uiOptions(container, {
gradeNames: [<gradenames of desired panels>,
<gradenames of schema for settings>],
pathToTemplates: "my/sites/lib/infusion/templates/",
pathToTocTemplate:
"my/sites/",
siteThemeClassName: "foofer-doodle-theme"
});
|
|
Column |
---|
Page Enhancer Only Code Block |
---|
|
fluid.pageEnhancer({
gradeNames: [<grade names of desired enactors>,
<gradenames of schema for settings>],
pathToTocTemplate: "my/sites/",
siteThemeClassName: "foofer-doodle-theme"
});
|
|
|
...
Section |
---|
Column |
---|
UIO Only Code Block |
---|
|
fluid.uiOptions(container, {
gradeNames: ["fluid.uiOptions.starterSettingsPanels",
"fluid.uiOptions.starterSettingsSchema"],
pathToTemplates: "my/sites/lib/infusion/templates/",
pathToTocTemplate: "my/sites/",
siteThemeClassName: "foofer-doodle-theme"
});
|
|
Column |
---|
Page Enhancer Only Code Block |
---|
|
fluid.pageEnhancer({
gradeNames: ["fluid.uiEnhancer.starterEnactors",
"fluid.uiOptions.starterSettingsSchema"],
pathToTocTemplate: "my/sites/",
siteThemeClassName: "foofer-doodle-theme"
});
|
|
|
...
Use Case: 3rd Parties Wanting A Subset Of The Starter Set
There are three possible ways to do this:
- Cut-and-paste: Copy the code that defines the "starter" grades, rename the grades, delete the parts you don't want, and use these new grades instead of the starter grades (not really recommended).
- Empty subcomponents: Use the starter grades and override the excluded subcomponents with
fluid.emptySubcomponent
- Individual grades: Use the individual settings grades desired instead of the starter set.
The last two of these methods will be shown here, excluding the colour-and-contrast setting.
Section |
---|
Column |
---|
| h3: Empty Subcomponents |
Column |
---|
| h3: Individual Grades |
|
Use Case: 4th Parties (users of customized UIOs)