presents a drop-down list
id | string|number | the button’s id |
type | string | the "buttonSelect" type |
icons_path | string | the path to the folder with icons or global path to icons set fo Ribbon |
items | array | an array of buttonSelect items |
myRibbon = new dhtmlXRibbon({
parent: "myRibbon",
icons_path: "../codebase/ribbon/",
items: [
{type:'block', text:'office document', mode:'cols', list:[
{id: "menu", type:"buttonSelect", text: "menu", img: "48/open.gif", items:[
{id:"new", text: "New", img: "18/new.gif"},
{id:"sep0", type: "separator"},
{id:"open", text: "Open", img: "18/open.gif"},
{id:"save", text: "Save", img: "18/save.gif"}
]},
{id:"buffer",type:"buttonSelect",text:"Buffer",isbig:true,img:"48/copy.gif",items:[
{id: "copy", text:"copy", img: "18/copy.gif"},
{id: "cut", text:"cut", img: "18/cut.gif"},
{id: "paste", text:"paste", img: "18/paste.gif"}
]}
]}
]
});
Related sample: Init from object
Back to top