Hello,
how can I change the text of the buttons of the confirm box?
Best regards
Horst Mürdter
Crossdata-Tools
Hello,
how can I change the text of the buttons of the confirm box?
Best regards
Horst Mürdter
Crossdata-Tools
Hello,
The view of these buttons is available by the $$(“dhx_confirm_controls”). Therefore, you may use the following approach:
/ids of the buttons/
var okId = $$(“dhx_confirm_controls”).first();
var cancelId = $$(“dhx_confirm_controls”).next();
/chaning labels/
$$(“dhx_confirm_controls”).item(okId).label = “New OK label”;
$$(“dhx_confirm_controls”).item(cancelId).label = “New Cancel label”;
/to apply these changes/
$$(“dhx_confirm_controls”).refresh();
Thank you Alexandra
for that info.
BTW, your code has an litte error (in the second line the first parameter is missing).
Here the complete code:
/*ids of the buttons*/
var okId = $$("dhx_confirm_controls").first();
var cancelId = $$("dhx_confirm_controls").next(okId);
/*chaning labels*/
$$("dhx_confirm_controls").item(okId).label = "New OK label";
$$("dhx_confirm_controls").item(cancelId).label = "New Cancel label";
/*to apply these changes*/
$$("dhx_confirm_controls").refresh();
Wouldn’t it be easier to add two properties for the button labels in one of the next versions?
Best regards
Horst Mürdter
Crossdata-Tools
Hello Horst,
we will consider this idea of labels in configuration and possibly add them into the next version.