You are here

function views_quicksand_style_plugin::option_definition in Views Quicksand 7

Set default options

Overrides views_plugin_style::option_definition

File

./views_quicksand_style_plugin.inc, line 17
Provide an accordion style plugin for Views. This file is autoloaded by views.

Class

views_quicksand_style_plugin
Implementation of views_plugin_style().

Code

function option_definition() {
  $options = parent::option_definition();
  $options['adjustHeight'] = array(
    'default' => 'auto',
  );
  $options['element'] = array(
    'default' => 'views-row',
  );
  $options['attribute'] = array(
    'default' => 'data-id',
  );
  $options['duration'] = array(
    'default' => 750,
  );
  $options['easing'] = array(
    'default' => 'swing',
  );
  $options['css'] = array(
    'default' => '1',
  );

  /*
   * @TODO:
   * Provide support for missing quicksand options:
   * enhancement
   * useScaling
   *
   * See http://razorjack.net/quicksand/docs-and-demos.html
   */
  return $options;
}