//…
import { L10n } from '@syncfusion/ej2-base';
//…
L10n.load({
'en-US': {
'colorpicker': {
'Apply': 'PICK THIS',
'Cancel': 'LOOK FURTHER',
}
}
});
|
<input ejs-colorpicker #colorpicker id='color-picker' (open)="onOpen($event)" type='color' />
|
public onOpen(args: OpenEventArgs): void {
var applyBtnElem, cancelBtnElem;
applyBtnElem = args.element.querySelector(".e-apply");
cancelBtnElem = args.element.querySelector(".e-cancel");
applyBtnElem.textContent = 'PICK THIS';
applyBtnElem.title = 'Pick This';
cancelBtnElem.textContent = 'LOOK FURTHER';
cancelBtnElem.title = "Look Further";
}
|