dataTableBundle - 打开“individual_filtering”'仅适用于特定列

时间:2016-12-26 06:56:03

标签: php symfony datatable

我使用stwe/datataTablebundle作为我的symfony应用程序。我希望在某些特定列上使用单独的列过滤器,但设置'individual_filterting' => true会为每列启用过滤器。如何指定列?目前我正在使用css隐藏不需要的列。

    $this->options->set(array(
        'display_start' => 0,
        'defer_loading' => -1,
        'dom' => 'lfiprtip',
        'length_menu' => array(20, 50, 100, 1000, 10000, '"All"'),
        'order_classes' => true,
        'order' => array(array(0, 'asc')),
        'order_multi' => true,
        'page_length' => 50,
        'paging_type' => Style::FULL_NUMBERS_PAGINATION,
        'renderer' => '',
        'scroll_collapse' => false,
        'search_delay' => 0,
        'state_duration' => 7200,
        'stripe_classes' => array(),
        'class' => Style::BOOTSTRAP_3_STYLE . ' table-condensed',
        'individual_filtering' =>false,
        'individual_filtering_position' => 'head',
        'use_integration_options' => true,
        'force_dom' => true,
    ));

0 个答案:

没有答案