一个典型的手风琴控件的效果如下:
按不同的手风琴按钮,会打开不同的面板,如上面俺菜单按钮后的效果图如下:
手风琴控件的使用比较简单,只要添加一个Accordion控件,然后在其中添加不同的Section控件即可。
每一个Section控件可以添加不同的子控件:
currentSection
你可以通过currentSection属性设定默认展开的Section,如:
accordion.set("currentSection", section1");
Attachments:
image2012-6-18 16:31:55.png (image/png)
image2012-6-18 16:33:13.png (image/png)
image2020-5-10 9:50:43.png (image/png)
image2020-5-10 9:51:11.png (image/png)
image2012-6-18 16:33:13.png (image/png)
image2020-5-10 9:50:43.png (image/png)
image2020-5-10 9:51:11.png (image/png)