javascript - Expanding one accordion item in the view -


i have form , onlu 1 accordion item within in (to show additional information other content). seems 1 accordion item don't want collapse/expand properly. if set collapsed:false, cannot collapsed @ all. if collapsed:true, can expanded once , never collapsed.

i suspect problem in filling determined height, can't solve myself.

what have done wrong?

here's short code preview:

view:"form", elements:[         { height:300 },     {       view:"accordion",                  rows:[                           {           view:"accordionitem",                      height:150,           collapsed:true,            body:{             template:""           }                                  }               ]     },     { autoheight:true } ] 

full snippet

by default, accordion ensure @ least 1 panel visible. can add multi:true accordion's config, disable behavior.

  {     view:"accordion", multi:true,                 rows:[                         {         height:150,         collapsed:true,           header:"test",         body:{           template:""         }                                }             ]   }, 

http://webix.com/snippet/cff77257


Comments