Checkbox Control

a checkbox item on the ribbon

Attributes

idstring|numberthe checkbox's id
typestringthe "checkbox" type
textstringthe checkbox's label
checkedbooleanspecifies whether the item will be checked initially, false by default
disablebooleanspecifies whether the item is enabled or disabled, false by default


myRibbon = new dhtmlXRibbon({
    parent: "myRibbon",
    icons_path: "../codebase/ribbon/",
    items : [
        {type: "block", text: "office document", list: [
            {type: "group", list: [
                {id: "check_box_1", type: "checkbox", text: "Check Box 1"}
            ]},
            {id:"check_box_2", type:"checkbox", "width":130},
            {id:"check_box_3", type:"checkbox", "text":"Check Box 3", value:"Any text"}
        ]}
    ]
});

Related sample:  Init from object

Back to top