attribute "data-priority" not working
attribute "data-priority" not working
rsilva
Posts: 5Questions: 3Answers: 0
For some reason datatables does not obey my data-priority attribute values.
<table id="calendar" class="display nowrap" cellspacing="0" width="100%">
<xsl:attribute name="data-js-datatables">{"order":[[ 0, "desc" ]], "iDisplayLength": 4}</xsl:attribute>
<thead>
<tr>
<th>Date</th>
<th>Event</th>
<th data-priority="2">Contacted</th>
<th>Organization</th>
<th data-priority="1" class="actions">Actions</th>
</tr>
</thead>
<tbody>
Has anyone run into this issue?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
What were you expecting it to do? Theres no
priority
...The data-* html5 options need to exist as options, http://datatables.net/reference/option/
Actually - as of Responsive 2
data-priority
should tell Responsive how it should hide columns. Example.Unfortunately there is a bug in 2.0.0 which is causing an issue with that - @rsilva, try the nightly version which should resolve this issue.
If not, please link to a test case showing the issue.
Allan
Ohhh, i didnt know it was responsive, there ya go!
@jLinux: Sorry, I should have clarified it.
@allan: It worked like a charm! Thank you!!
Good to hear - thanks for letting me know. I expect to release a new version of Responsive with this fix (and others) next week (assuming all goes well!).
Allan