Component

Component infrastructure.

defined in: base.js

Namespace

Methods

  • Component. create (component, self) <static> Create a component instance using json with xclass.

Namespace Detail

  • Component
    Component infrastructure.

Methods Detail

  • Component. create (component, self) <static> view source
    Create a component instance using json with xclass.
    Parameters
    •   component {Object} Component's json notation with xclass attribute.
    •   component.xclass {String} Component to be newed 's xclass.
    •   self {Controller} Component From which new component generated will inherit prefixCls if component 's prefixCls is undefined.
    Example
    • 
       create({
          xclass:'menu',
          children:[{
             xclass:'menuitem',
             content:"1"
          }]
       })
      
blog comments powered by Disqus
Top