customer page cshtml file #5382
Unanswered
zprofreelancer
asked this question in
Help
Replies: 1 comment 8 replies
-
It's CustomerIndex.cshtml, if you check it you will see this bellow code: new Serene.Northwind.CustomerGrid($('#GridDiv'), {}).init(); Almost things you see on customer page is built from "create new customer" button is also a button of toolbarButton in grid.ts CustomerGrid.ts @Serenity.Decorators.registerClass()
@Serenity.Decorators.filterable()
export class CustomerGrid extends Serenity.EntityGrid<CustomerRow, any> {
// ....
// ....
constructor(container: JQuery) {
super(container);
}
getButtons() {
// "CREATE NEW" BUTTON IS HERE <==================
var buttons = super.getButtons();
// you can add more buttons like this:
buttons.push(....);
return buttons;
}
} |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
for example the customer page, where is the cshtml customer with the "new customer" button?
Beta Was this translation helpful? Give feedback.
All reactions