function slickgrid_views_plugin::option_definition in Slickgrid 6
Same name and namespace in other branches
- 7.2 includes/slickgrid_views_plugin.inc \slickgrid_views_plugin::option_definition()
- 7 includes/slickgrid_views_plugin.inc \slickgrid_views_plugin::option_definition()
Set default options
File
- ./
slickgrid_views_plugin.inc, line 11
Class
- slickgrid_views_plugin
- Extending the view_plugin_style class to provide a slickgrid style.
Code
function option_definition() {
$options = parent::option_definition();
$options['grouping_field'] = array(
'default' => NULL,
);
$options['collapse_groups_by_default'] = array(
'default' => FALSE,
);
$options['collapsible_taxonomy_field'] = array(
'default' => NULL,
);
// maps to slickgrid option enableColumnResize
$options['enableColumnResize'] = array(
'default' => TRUE,
);
// maps to slickgrid option enableColumnReorder
$options['enableColumnReorder'] = array(
'default' => TRUE,
);
$options['select_columns'] = array(
'default' => TRUE,
);
$options['delete_nodes'] = array(
'default' => TRUE,
);
// maps to slickgrid option asyncEditorLoading
$options['asyncEditorLoading'] = array(
'default' => TRUE,
);
// maps to slickgrid option enableCellNavigation
$options['autoEdit'] = array(
'default' => FALSE,
);
// maps to slickgrid option forceFitColumns
$options['forceFitColumns'] = array(
'default' => false,
);
// maps to slickgrid option forceFitColumns
$options['multi_edit'] = array(
'default' => false,
);
// maps to slickgrid option forceFitColumns
$options['undo'] = array(
'default' => false,
);
$options['viewport_height'] = array(
'default' => 500,
);
// maps to slickgrid option rowHeight
$options['rowHeight'] = array(
'default' => 30,
);
return $options;
}