Button Control

presents a simple button:

Attributes

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"},
      {id:"print",type:"button",text:"Quick<br/>print",img:"48/printer.png",isbig:true},
      {id:"preview",type:"button",text:"Print<br/>preview",img:"48/zoom_selection.png",
       isbig:true}
    ]}
  ]
});

Related sample:  Init from object

Back to top