What's defaultKind for?

Btw, newbie question,

What and when shall I use defaultKind ? attribute


  • edited May 2013
    defaultKind defines the a predefined kind to use for children for your kind's components, so you don't have to name it.

    So, if you set defaultKind as "onyx.Button", if you don't declare otherwise, every child on your component will be an "onyx.Button":
         name: "myKind",
         defaultKind: "onyx.Button",
              content: "hello"  //this is an onyx.Button
         }, {
              kind: "Scroller",
              content: "world"
         }, {
              content: "other"  //this is an onyx.Button
Sign In or Register to comment.