public function ViewsMegarowTable::buildOptionsForm in Views Megarow 8
Render the given style.
Overrides Table::buildOptionsForm
File
- src/
Plugin/ views/ style/ ViewsMegarowTable.php, line 40
Class
- ViewsMegarowTable
- The style plugin for serialized output formats.
Namespace
Drupal\views_megarow\Plugin\views\styleCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['views_megarow'] = array(
'#type' => 'details',
'#title' => t('Views Megarow settings'),
'#open' => TRUE,
);
$form['views_megarow']['title'] = array(
'#type' => 'textfield',
'#title' => t('Megarow title'),
'#description' => t('Value to display as the title of the row when opened.'),
'#default_value' => $this->options['views_megarow']['title'],
);
$form['views_megarow']['scroll'] = array(
'#type' => 'checkbox',
'#title' => t('Enable scroll'),
'#description' => t('When a row is opened, scroll to have the opened row at the top of the page.'),
'#default_value' => $this->options['views_megarow']['scroll'],
);
$form['views_megarow']['autoclose'] = array(
'#type' => 'checkbox',
'#title' => t('Automatically close the row'),
'#description' => t('When a row is opened and a form submitted, automatically close the row.'),
'#default_value' => $this->options['views_megarow']['autoclose'],
);
}