You are here

function datatables_style_plugin::option_definition in DataTables 7.2

Same name and namespace in other branches
  1. 6 views/datatables_style_plugin.inc \datatables_style_plugin::option_definition()
  2. 7 views/datatables_style_plugin.inc \datatables_style_plugin::option_definition()

Implements parent::option_definition().

Overrides views_plugin_style_table::option_definition

File

views/datatables_style_plugin.inc, line 16
Contains the datatables style plugin.

Class

datatables_style_plugin
Style plugin to render each item as a row in a datatables.

Code

function option_definition() {
  $options = parent::option_definition();
  unset($options['sticky']);
  unset($options['override']);
  $options['elements'] = array(
    'default' => array(
      'search_box' => TRUE,
      'table_info' => TRUE,
      'save_state' => FALSE,
    ),
  );
  $options['layout'] = array(
    'default' => array(
      'autowidth' => FALSE,
      'themeroller' => FALSE,
      'sdom' => '',
    ),
  );
  $options['pages'] = array(
    'default' => array(
      'pagination_style' => 0,
      'length_change' => 0,
      'display_length' => 10,
    ),
  );
  $options['hidden_columns'] = array(
    'default' => array(),
  );
  return $options;
}