Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145970 | Jul 16,2019 09:35 AM UTC | Jul 24,2019 10:38 AM UTC | Angular | 3 |
![]() |
Tags: ejRibbon |
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'
}
}]
}] |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.