attribute "data-priority" not working

attribute "data-priority" not working

rsilvarsilva Posts: 5Questions: 3Answers: 0
edited November 2015 in Free community support

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

Answers

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75

    What were you expecting it to do? Theres no priority...

    The data-* html5 options need to exist as options, http://datatables.net/reference/option/

  • allanallan Posts: 63,356Questions: 1Answers: 10,444 Site admin
    Answer ✓

    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

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75

    Ohhh, i didnt know it was responsive, there ya go!

  • rsilvarsilva Posts: 5Questions: 3Answers: 0

    @jLinux: Sorry, I should have clarified it.
    @allan: It worked like a charm! Thank you!!

  • allanallan Posts: 63,356Questions: 1Answers: 10,444 Site admin

    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

This discussion has been closed.