Text Control

an item that contains some text displayed in the item display area:

Attributes

idstring|numberthe text's id
typestringthe "text" type
isbigstringdefines whether the text is big, false by default
textstringthe text item’s label


myRibbon = new dhtmlXRibbon({
    parent: "myRibbon",
    icons_path: "../codebase/ribbon/",
    items : [
        {type:'block', text:'office document', list:[
            {type : "group", list : [
                {id : "text_1", type:"text", text:"Text 1"}
            ]},
                {id : "text_2", type:"text", text:"Text 2"},
                {id : "text_3", type:"text", text:"Text 3", isbig : true}
        ]}
    ]
});

Related sample:  Init from object

Back to top