Topic: TableEditor plugin programmatically remove a row.
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 3 years 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
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- 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