component: support defaultChildXClass #274

Closed
yiminghe opened this Issue Dec 6, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Member

yiminghe commented Dec 6, 2012

child component can ignore xclass config for common child type

new Menu({
  children:[{
      content:'item1'
  }, {
      content:'item2'
  },{
      xclass:'submenu'
      content:'item2',
      menu:{
           children:[{
                 content:'sub-1'
           }]
      } 
  }]
})

示例:

http://docs.kissyui.com/kissy/src/menu/demo.html

yiminghe closed this in 05cf6ae Dec 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment