New columns.responsivePriority property

New columns.responsivePriority property

jmo21jmo21 Posts: 13Questions: 3Answers: 0
edited November 2015 in Responsive

If I have an Edit column in the right most column, I use this priority to keep it around as the tables shrinks, and this works fine.

However if the column eventually disappears, and becomes part of the detail section, launching the Editor modal doesn't work. None of my editable columns appear in the modal.

Is this a bug, or can I make sure the edit column NEVER disappears?

Replies

  • btreebtree Posts: 99Questions: 14Answers: 11

    Hi,

    I think you set it over the thead? Then yes it is not working for me too.

    <th data-priority="20000"><?php __e('Note'); ?></th>  //not working with bootstrap
    

    When you set it over data or ColumnDefs it is working for me with bootstrap.

    //working with bootstrap
    { 
       data: 'checkup.note',
       responsivePriority: 20000 
    }  //set higher prio to hide this field first (10,000 is standard value)
    

    or

    //working with bootstrap
     columnDefs: [
                { responsivePriority: 20000, targets: 0 },
    

    Cheers
    Hannes

  • jmo21jmo21 Posts: 13Questions: 3Answers: 0
    edited November 2015

    sorry btree - I thought my sneaky edit would be missed.....

    originally my post said I couldn't get this property working with bootstrap, but I got it working fine now and moved on to my next issue - sorry.

  • allanallan Posts: 63,572Questions: 1Answers: 10,482 Site admin

    There is unfortunately a bug in Responsive 2.0.0 where by the data-priority attribute would not be correctly picked up. This has been corrected in the nightly and will be released in the next version.

    columns.responsivePriority however should work. If it isn't (although I suspect it is based on the above) please link to a test case showing the issue.

    Allan

  • jmo21jmo21 Posts: 13Questions: 3Answers: 0

    Any thoughts on my question Allan?

  • allanallan Posts: 63,572Questions: 1Answers: 10,482 Site admin

    Other than my above post? Did you try the nightly version of Responsive? Can you link to a test case showing the issue so it can be debugged?

    Allan

This discussion has been closed.