setting sortable columns via custom css in plugin options tab
-
I am trying to set which columns are sortable and which ones are not. Currently I am using the Custom Commands block for each individual table, but nearly all the tables have the same type of information, so rather than type the same command in the Custom Commands block, I would like to be able to set this in the plugin options tab in the Custom CSS area block so that it sets the same sortable settings to all the tables, but cannot seem to find the proper syntax to do this in the custom css block. If there is such coding for the custom css, can you please inform me. this is the line currently in my Custom Commands line: "columnDefs": [ { "orderable": false, "targets": [ 7, 8, 9 ] } ] and the following is what is currently in my Plugin Option Custom CSS block: .tablepress th, .tablepress td { border: 1px solid #cccccc; padding: 3px; } .tablepress tbody td { font-family: Arial; font-size: 16px; line-height: normal; } .tablepress .column-1 { width: 1px; text-align: right; } .tablepress .column-2, .tablepress .column-3, .tablepress .column-4, .tablepress .column-5, .tablepress .column-6, .tablepress .column-9, .tablepress .column-10 { width: 1px; text-align: center; } .tablepress .column-7 { width: 115px; text-align: left; } .tablepress .column-8 { width: 330px; text-align: left; } .tablepress-id-1 .column-1 { text-align: left; } .tablepress-id-1 .column-7, .tablepress-id-1 .column-8 { width: 1px; text-align: center; } Thank You in advance for any information you can provide on this topic. Blain
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘setting sortable columns via custom css in plugin options tab’ is closed to new replies.