📌  相关文章
📜  serenity-is 更改按钮文本 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:21.151000             🧑  作者: Mango

代码示例1
// 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;
}