How to Highlight Text in a Table Using mark.js
Steps:
Integrate mark.js Library:
Add the following code to your Custom Scripts section:
Create a JavaScript Action:
In your project, add an action with one JavaScript step:
This code selects the table, initializes mark.js, removes any previous highlights, and then applies new highlights based on the data provided.
Add Text Input and Assign Action:
Incorporate a text input field in your UI.
Assign the action created in step 2 to the 'OnChange' event of the text input.
This setup ensures that whenever the input's value changes, the text in the table gets highlighted accordingly.
Conclusion: With these steps, you can easily highlight text in a table using mark.js. This feature enhances the user experience by allowing dynamic interaction with the table data.
Last updated