You are here

protected function Jssor::defineOptions in Jssor Slider 8

Same name in this branch
  1. 8 src/Plugin/views/style/Jssor.php \Drupal\jssor\Plugin\views\style\Jssor::defineOptions()
  2. 8 src/Plugin/views/row/Jssor.php \Drupal\jssor\Plugin\views\row\Jssor::defineOptions()
Same name and namespace in other branches
  1. 7 src/Plugin/views/style/Jssor.php \Drupal\jssor\Plugin\views\style\Jssor::defineOptions()

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides StylePluginBase::defineOptions

File

src/Plugin/views/style/Jssor.php, line 66
Definition of Drupal\jssor\Plugin\views\style\Jssor.

Class

Jssor
Style plugin to render each item in an ordered or unordered list.

Namespace

Drupal\jssor\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['slide_duration'] = array(
    'default' => 500,
  );
  $options['slide_spacing'] = array(
    'default' => 0,
  );
  $options['drag_orientation'] = array(
    'default' => 1,
  );
  $options['key_navigation'] = array(
    'default' => TRUE,
  );
  $options['autoplay'] = array(
    'default' => TRUE,
  );
  $options['autoplayinterval'] = array(
    'default' => 3000,
  );
  $options['autoplaysteps'] = array(
    'default' => 1,
  );
  $options['pauseonhover'] = array(
    'default' => 1,
  );
  $options['arrownavigator'] = array(
    'default' => FALSE,
  );
  $options['bulletnavigator'] = array(
    'default' => FALSE,
  );
  $options['chancetoshow'] = array(
    'default' => 0,
  );
  $options['arrowskin'] = array(
    'default' => 1,
  );
  $options['bulletskin'] = array(
    'default' => 1,
  );
  $options['autocenter'] = array(
    'default' => 2,
  );
  $options['spacingx'] = array(
    'default' => 0,
  );
  $options['spacingy'] = array(
    'default' => 0,
  );
  $options['orientation'] = array(
    'default' => 1,
  );
  $options['steps'] = array(
    'default' => 1,
  );
  $options['rows'] = array(
    'default' => 1,
  );
  $options['lanes'] = array(
    'default' => 1,
  );
  $options['transition'] = array(
    'default' => 'transition0000',
  );
  $options['action_mode'] = array(
    'default' => 1,
  );
  $options['scale'] = array(
    'default' => TRUE,
  );
  return $options;
}