Hi Antonio,
Thanks for contacting Syncfusion support.
Query: Is it possible to get the ribbon's groups text? I need to get the text in order to translate it.
Yes, we can get the ribbon groups text using Create event with the help of below code.
[Code]
<div id="defaultRibbon"></div>
<script>
$(function () {
$("#defaultRibbon").ejRibbon({
width: "100%",
tabs: [{
id: "home", text: "HOME", groups: [{
text: "New", //text name of group
alignType: ej.Ribbon.alignType.rows, content: [{
groups: [{
id: "new",
toolTip: "New"
}
]
}]
}]
} ],
create:"createControl" // Create event
});
});
function createControl(args) {
var groupText=args.model.tabs[0].groups[0].text;// Get group text here
alert(groupText);
}
</script>
Please refer to the sample below.
Sample: http://www.syncfusion.com/downloads/support/forum/122088/ze/sample1861386955.zip
If the above does not solve your issue, please share your scenario to the ribbon groups text. This would help us to solve the issue.
Regards,
Kavitha N.