attachAccordion
adds an accordion object to the popup
dhtmlXAccordion attachAccordion(number width,number height,object conf);
width | number | accordion width |
height | number | accordion height |
conf | object | optional, accordion config for object-api init |
dhtmlXAccordion | dhtmlXAccordion instance |
Example
var myPop = new dhtmlXPopup(...);
var myAcc = myPop.attachAccordion(350, 300, {
icons_path: "icons/",
items: [
{ id: "a1", text: "Main Page", icon: "flag_red.png" },
{ id: "a2", text: "Navigation", icon: "flag_green.png" },
{ id: "a3", text: "Feedback", icon: "flag_blue.png" }
]
});
Back to top