Check documentation for the latest version of dhtmlxSuite Button Control DHTMLX Docs

Button Control

presents a simple button:


idstring|numberthe button’s id
typestringthe "button" type
textstringthe button’s label
imgstringthe icon of the button in the enabled state
imgdisstringthe icon of the button in the disabled state
isbigbooleandefines whether the button is big or small, false by default
disablebooleandefines whether the button is enabled or disabled, false by default

myRibbon = new dhtmlXRibbon({
  parent: "myRibbon",
  icons_path: "../codebase/ribbon/",
  items : [
    {type:'block', text:'office document', mode:'cols', list:[
      {id:"open", type:"button",text:"Open", isbig:true,img:"48/open.gif"},

Related sample:  Init from object

Back to top