AJAX deletelink in Visual View table

By: Tommy Tutone | Asked: 09/03/2022
ForumsCategory: How-toAJAX deletelink in Visual View table
Tommy Tutone asked 2 years ago
I have a table built with visual views that I would like to use a deletelink using AJAX. In a classic table, I could easily change each <tr> to <tr id="frm_container_[id]"> but I'm not seeing a way to do that in Visual Views.Without using AJAX, the deletelink wipes out the URL parameters I need for the view to display the proper content when the page refreshes after deleting. Thanks in advance.
1 Answers
Victor Font answered 2 years ago
Visual views creates a CSS grid container. Each Grid cell is equivalent in function to a legacy table cell. If you click in any grid cell, you'll open the legacy TinyMCE editor. The Visual Views add-on doesn't support the block editor yet. However, if you use the TinyMCE text tab and not the visual editor tab, you can add any HTML elements you want including frm_container_[id]. You just need to write the HTML in the text tab so TinyMCE doesn't rewrite the HTML.
Tommy Tutone replied 2 years ago

Thank you Victor!

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right