You are here

public function DxprGridStackPluginStyle::option_definition in DXPR GridStack 7

Definition.

Overrides views_plugin_style::option_definition

File

plugins/dxpr_gridstack/dxpr_gridstack_gridstack_plugin_style.inc, line 14
Definition of dxpr_gridstack_gridstack_plugin_style.

Class

DxprGridStackPluginStyle
Class to define a style plugin handler.

Code

public function option_definition() {
  $options = parent::option_definition();
  $initial_layout = '[{"x":0,"y":0,"width":6,"height":6},{"x":6,"y":0,"width":3,"height":6},{"x":9,"y":0,"width":3,"height":6}]';
  $options['gridstack_layout'] = array(
    'default' => 'custom',
  );
  $options['gridstack_items'] = array(
    'default' => '3',
  );
  $options['gridstack_gap'] = array(
    'default' => '0',
  );
  $options['gridstack_overlay'] = array(
    'default' => 'dark',
  );
  $options['gridstack_zoom'] = array(
    'default' => 1,
  );
  $options['gridstack_layout_data'] = array(
    'default' => $initial_layout,
  );
  return $options;
}