dijit/Declaration.js

  • Provides:

    • dijit.Declaration
  • dijit.Declaration

    • type
      Function
    • chains:
      • dijit._Widget: (prototype)
      • dijit._Widget: (call)
    • summary
      The Declaration widget allows a developer to declare new widget
      classes directly from a snippet of markup.
  • dijit.Declaration._noScript

    • tags: private
    • type
      Boolean
    • summary
      Flag to parser to leave alone the script tags contained inside of me
  • dijit.Declaration.stopParser

    • tags: private
    • type
      Boolean
    • summary
      Flag to parser to not try and parse widgets declared inside of me
  • dijit.Declaration.widgetClass

    • tags: const
    • type
      String
    • summary
      Name of class being declared, ex: "acme.myWidget"
  • dijit.Declaration.defaults

    • summary
  • dijit.Declaration.mixins

    • tags: const
    • type
      String[
    • summary
      List containing the prototype for this widget, and also any mixins,
      ex: ["dijit._Widget", "dijit._Container"]
  • dijit.Declaration.buildRendering

    • type
      Function
    • source: [view]
         var src = this.srcNodeRef.parentNode.removeChild(this.srcNodeRef),
          methods = dojo.query("> script[type^='dojo/method']", src).orphan(),
          connects = dojo.query("> script[type^='dojo/connect']", src).orphan(),
          srcType = src.nodeName;


         var propList = this.defaults || {};


         // For all methods defined like