serenity-is change button text

The solution for “serenity-is change button text” can be found here. The following code will assist you in solving the problem.

// in EntityGrid.ts
protected getButtons() {
var buttons = super.getButtons();
var btn = Q.first(buttons, x => x.cssClass == “add-button”);
if(btn) btn.title = “New Custom Entity Button Title”;
return buttons;

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

inline scripts encapsulated in