Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

serenity-is change button text

// 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;
}
 
PREVIOUS NEXT
Tagged: #change #button #text
ADD COMMENT
Topic
Name
5+5 =