content: [{
groups: [{
id: 'bold', toolTip: 'Bold', type: 'togglebutton',
toggleButtonSettings: { contentType: 'imageonly', defaultText: 'Bold', activeText: 'Bold', defaultPrefixIcon: 'e-ribbon e-icon bold', activePrefixIcon: 'e-ribbon e-icon bold' }
}, {
id: 'italic', toolTip: 'Italic', type: 'togglebutton',
toggleButtonSettings: {
contentType: 'imageonly',
defaultText: 'Italic',
activeText: 'Italic',
toggleState: true,
defaultPrefixIcon: 'e-ribbon e-icon e-ribbonitalic',
activePrefixIcon: 'e-ribbon e-icon e-ribbonitalic'
}
},
{
id: 'underline', toolTip: 'Underline', type: 'togglebutton',
toggleButtonSettings: {
contentType: 'imageonly',
defaultText: 'Underline',
activeText: 'Underline',
toggleState: true,
defaultPrefixIcon: 'e-ribbon e-icon e-ribbonunderline',
activePrefixIcon: 'e-ribbon e-icon e-ribbonunderline'
}
}]
}] |
onSelect(event)
{
if (event.activeIndex == 1) {
var toggleObj = $("#Default_bold").data("ejToggleButton");
toggleObj.setModel({ toggleState: true })
}
} |
content: [{
groups: [{
id: 'bold', toolTip: 'Bold', type: 'togglebutton',
toggleButtonSettings: { contentType: 'TextAndImage', defaultText: 'Bold', activeText: 'Bold', defaultPrefixIcon: 'e-ribbon e-icon bold', activePrefixIcon: 'e-ribbon e-icon bold' }
}, {
id: 'italic', toolTip: 'Italic', type: 'togglebutton',
toggleButtonSettings: {
contentType: 'TextAndImage',
defaultText: 'Italic',
activeText: 'Italic',
toggleState: true,
defaultPrefixIcon: 'e-ribbon e-icon e-ribbonitalic',
activePrefixIcon: 'e-ribbon e-icon e-ribbonitalic',
}
},
{
id: 'underline', toolTip: 'Underline', type: 'togglebutton',
toggleButtonSettings: {
contentType: 'TextAndImage',
defaultText: 'Underline',
activeText: 'Underline',
toggleState: true,
defaultPrefixIcon: 'e-ribbon e-icon e-ribbonunderline',
activePrefixIcon: 'e-ribbon e-icon e-ribbonunderline'
}
}]
}] |