tablesorter_style_plugin.inc in Tablesorter 7
Contains the tablesorter style plugin.
File
views/tablesorter_style_plugin.incView source
<?php
/**
* @file
* Contains the tablesorter style plugin.
*/
/**
* Style plugin to render each item as a row in a tablesorter.
*
* @ingroup views_style_plugins
*/
class tablesorter_style_plugin extends views_plugin_style_table {
public function option_definition() {
$options = parent::option_definition();
return $options;
}
/**
* Render the given style.
*/
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['elements'] = array(
'#type' => 'fieldset',
'#title' => t('Tablesorter Elements'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['elements']['tablesorter_views_pager'] = array(
'#type' => 'checkbox',
'#title' => t('Enable Tablesorter pager?'),
'#default_value' => !empty($this->options['elements']['tablesorter_views_pager']),
);
}
}
Classes
Name![]() |
Description |
---|---|
tablesorter_style_plugin | Style plugin to render each item as a row in a tablesorter. |