Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function table_layout_fixed( $component_options, $shortcode_name, $table ){
- if ( 'cdbt-view' === $shortcode_name && 'your_table_name' === $table ) {
- $component_options['customAfterRender'] = <<<EJS
- $('#'+options.tableId).css({tableLayout:'auto'}).parent('.panel-table-wrapper').kinetic('detach');
- EJS;
- }
- return $component_options;
- }
- add_filter( 'cdbt_shortcode_custom_component_options', 'table_layout_fixed', 10, 3 );
Add Comment
Please, Sign In to add comment