Topic: TableEditor plugin programmatically remove a row.

admin priority asked 8 months ago


I understand that for table editor there is no functionality to validate addition, as in prevent adding a row if a certain condition ( email already in database for example ) is met, which is disappointing to say the least.

Trying to find a workaround to this, I need to know how I can programatically remove a row. I have a function binded tot the "add.mdb.tableEditor" which returns the "event" object. So what I need is basically to programatically remove the "event.row" row.


Dawid Wajszczuk staff answered 7 months ago


Hi,

You can simply write a function to click .delete-button or .discard-button. Here is the snippet https://mdbootstrap.com/snippets/standard/d-wajszczuk/3822316#js-tab-view.

Keep coding,
Dawid



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

  • User: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.11.0
  • Device: Pc
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No