Using HTML5 data-* attribute for orderable
Using HTML5 data-* attribute for orderable
![Bird87_ZA](https://secure.gravatar.com/avatar/85a00c6f9682e327eb4051a0d905ad6d/?default=https%3A%2F%2Fvanillicon.com%2F85a00c6f9682e327eb4051a0d905ad6d_200.png&rating=g&size=120)
I've been trying to figure this out using some examples on the site. However, I'm not getting it to work.
I want to use the data-*
attribute to disable ordering on the last of 3 columns. This is what I have so far:
<table class="table table-striped table-hover " data-columns="[null,null,{"orderable": false}]">
What am I doing wrong or missing? As stated, I based this off examples on the site. Thanks in advance.
This discussion has been closed.
Answers
The column properties should be assign to the header cell for that column - as shown in the manual for the class name. For example you might use:
Allan
I completely missed that. Thanks for the response. Works perfectly!