Topic: How to remove the delete button from TableEditor

RossK1 priority asked 9 months ago


Hi,

Is there a way to instantiate a table-editor instance but remove the delete action buttons?

I need to have a user edit the values in a table but not add or remove any records. Removing the ability to add is easy, but how can I remove the delete buttons that are automatically created upon table creation? Is there an parameter or option I can use?

My brute force idea is to find all of the buttons using their "delete-button" class and simply remove them ... but that seems ugly.

Any suggestions? Thank you!


Kamila Pieńkowska staff answered 9 months ago


We do not provide the option not to add a delete button to the table editor. The only solution is to hide the delete button:

https://mdbootstrap.com/snippets/standard/kpienkowska/5495175



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.4.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No