![]() In the above example, the 4 columns are title,content,tags,date in this order. You just need to list the visibility for each column in the correct order. You do not need to list column names in the column_breakpoints option.You should set one option for each column in the table, for example: The default option will let the plugin decide when it is hidden (using the priorities option if set). The none option means it will not be shown in the table, but the column will still show in the child row (or modal window) when expanded. The all option means the column will always be visible, regardless of screen size. For example, setting a breakpoint of tablet for a column means it will display on tablet devices, but not on mobiles or desktop screens. ![]() If you wish to set more specific breakpoints, you can set one of the following options for each column: desktop, tablet, mobile, all, none or default. The column_breakpoints option gives you fine-grained control over the breakpoints for each column when viewed at smaller screen sizes.īy default, Posts Table Pro will show or hide columns on smaller screens based on the priorities option described above (or the default priorities if none are set). If you had a table with three columns – title, author, and categories, and you wanted to make title the most important, categories second most, and author least important you would use the following: Column breakpoints So a column with a priority of “1” would have the highest priority and be collapsed last. The lower the number, the higher priority that column has. Some default priorities are used, but if you wish to override these you can use this option. So the priorities option is used to determine the order in which columns are “collapsed” on smaller screens. Clicking this icon will expand the row to show its full contents. ![]() When the screen size gets too small, the plugin will collapse certain columns down so they are no longer visible, and a “+” icon will appear at the left-side of each row. The priorities option is only relevant when displaying the table on smaller screen sizes (mobiles, tablets, etc) or when you have a lot of columns in your table and the plugin can’t fit everything in.
0 Comments
Leave a Reply. |