How to insert text into a column header with a attribute in the HTML table ?

  • 1
  • Question
  • Updated 2 years ago
  • Answered
Is it possible to add text into the html attribute in the HTML table when using a table component? 

This particular attribute and css class contains no text (its the action column table header): 

<th class="actioncolumn"></th>

I'd like to add the words: Buttons

If so, how can this be accomplished?

Thanks!
Photo of ns

ns

  • 1,822 Points 1k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Christine Jessen

Christine Jessen

  • 670 Points 500 badge 2x thumb
Hi!

Thanks for your question - you can insert some jQuery into an inline Javascript snippet that will add the Buttons text when the page is loaded.

1.) Create a new Javascript snippet of type "Inline"


2.) In the pageload function, add this one line of code:
$('.actioncolumn').text('Buttons');
Hope this helps!
Christine
Photo of ns

ns

  • 1,822 Points 1k badge 2x thumb
Thank you Christine!