Skip to content

Instantly share code, notes, and snippets.

@colinbdclark
Last active December 19, 2015 21:48
Show Gist options
  • Save colinbdclark/6022369 to your computer and use it in GitHub Desktop.
Save colinbdclark/6022369 to your computer and use it in GitHub Desktop.
Restructuring the UIO Auxiliary Schema to support panel removal.
fluid.defaults("catOptions.auxSchema", {
gradeNames: ["fluid.uiOptions.auxSchema", "autoInit"],
auxiliarySchema: {
"namespace": "catOptions",
"templatePrefix": "../pages/catOptionsPanel/html/",
"catSize": {
"type": "catOptions.size",
"enactor": {
type: "catOptions.moreFoodEnactor"
},
"panel": {
"type": "catOptions.panel",
"container": ".catOptions-catSizePanel", // the css selector in the template where the panel is rendered
"template": "%prefix/CatOptions-catSizePanel.html"
}
},
"catSizeOtherEnactor" {
"type": "catOptions.size",
"enactor": {
type: "catOptions.goToTheNeighboursHouseAndSecretlyEatEvenMoreFood"
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment