protected function FooTable::defineOptions in FooTable 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/style/FooTable.php \Drupal\footable\Plugin\views\style\FooTable::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides Table::defineOptions
File
- src/
Plugin/ views/ style/ FooTable.php, line 43
Class
- FooTable
- Style plugin to render a table as a FooTable.
Namespace
Drupal\footable\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['footable'] = [
'default' => [
'expand_all' => FALSE,
'expand_first' => FALSE,
'show_header' => TRUE,
'toggle_column' => 'first',
'bootstrap' => [
'striped' => FALSE,
'bordered' => FALSE,
'hover' => FALSE,
'condensed' => FALSE,
],
'component' => [
'paging' => [
'enabled' => FALSE,
'countformat' => '{CP} of {TP}',
'current' => 1,
'limit' => 5,
'position' => 'right',
'size' => 10,
],
'filtering' => [
'enabled' => FALSE,
'delay' => 1200,
'min' => 3,
'placeholder' => 'Search',
'position' => 'right',
'space' => 'AND',
],
'sorting' => [
'enabled' => FALSE,
],
],
],
];
return $options;
}