Rubric Editor API Methods
setLabelBundle()
Use a custom label bundle to override the default UI labels.
You would want to use this method to customize the editor interface, for example, to change the text of buttons or labels to match your application's language or style.
Examples
await editor.setLabelBundle({
labels: {
'actions.cancel': 'Go back'
}
});
Arguments
-
options object
Object containing the labels to override the default UI labels.
The following properties are supported.
-
labels object
The object containing all the labels to override.
See the full list of properties for the available labels that can be customized.
-
Return value
Type Promise
Resolves when the label bundle is set.