Guest User

Untitled

a guest
May 31st, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2.  
  3. function table_layout_fixed( $component_options, $shortcode_name, $table ){
  4. if ( 'cdbt-view' === $shortcode_name && 'your_table_name' === $table ) {
  5. $component_options['customAfterRender'] = <<<EJS
  6. $('#'+options.tableId).css({tableLayout:'auto'}).parent('.panel-table-wrapper').kinetic('detach');
  7. EJS;
  8. }
  9. return $component_options;
  10. }
  11. add_filter( 'cdbt_shortcode_custom_component_options', 'table_layout_fixed', 10, 3 );
Add Comment
Please, Sign In to add comment