Guest User

Untitled

a guest
May 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. dojo.provide("akayami.layout.AccordionContainer");
  2. dojo.require("dijit.layout.AccordionContainer");
  3.  
  4. dojo.declare(
  5. "akayami.layout.AccordionPane",
  6. [dijit.layout.AccordionPane],
  7. {
  8. // you have to add these attributes to the class as well as mapping them to nodes via attributeMap
  9. src: '',
  10. akayami: '',
  11. templatePath: dojo.moduleUrl("akayami","layout/templates/AccordionPane.html"),
  12. templateString: "",
  13. attributeMap: dojo.mixin(dojo.clone(dijit.layout.ContentPane.prototype.attributeMap), {
  14. title: {node: "titleTextNode", type: "innerHTML" },
  15. akayami: {node: "titleTextNode", type: "attribute" },
  16. src: {node: "titleIconNode", type: "attribute"}
  17. })
  18. }
  19. );
Add Comment
Please, Sign In to add comment