Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dojo.provide("akayami.layout.AccordionContainer");
- dojo.require("dijit.layout.AccordionContainer");
- dojo.declare(
- "akayami.layout.AccordionPane",
- [dijit.layout.AccordionPane],
- {
- // you have to add these attributes to the class as well as mapping them to nodes via attributeMap
- src: '',
- akayami: '',
- templatePath: dojo.moduleUrl("akayami","layout/templates/AccordionPane.html"),
- templateString: "",
- attributeMap: dojo.mixin(dojo.clone(dijit.layout.ContentPane.prototype.attributeMap), {
- title: {node: "titleTextNode", type: "innerHTML" },
- akayami: {node: "titleTextNode", type: "attribute" },
- src: {node: "titleIconNode", type: "attribute"}
- })
- }
- );
Add Comment
Please, Sign In to add comment