Skip to content

Hide list form on startup and add edit button next to new button to display list form. #5631

Answered by minhhungit
shortsam1 asked this question in Help
Discussion options

You must be logged in to vote

@shortsam1 if you are on deadline you can hire me 😁 , hehe, just kidding

To remove button you can add code in grid.ts file, check sample code here
That code shows how to remove button, you can add new button like this:

buttons.push({
      title: 'YOUR CUSTOM BUTTON',
      cssClass: 'your-custom-button',
      icon: "fa-home",
      onClick: () => {
         // do something here
      }
  });

To hide grid (purple box) you can use this code:

constructor(container: JQuery) {
    super(container);

    this.element.find(".grid-container").hide(); // add this line
}

good luck

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shortsam1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants