Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: How to remove the delete button from TableEditor

RossK1 priority asked 1 year 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 1 year 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