You are here

public static function SlickDefault::jsSettings in Slick Carousel 7.3

Same name and namespace in other branches
  1. 8.2 src/SlickDefault.php \Drupal\slick\SlickDefault::jsSettings()

Defines JS options required by theme_slick(), used with optimized option.

1 call to SlickDefault::jsSettings()
template_preprocess_slick in templates/slick.theme.inc
Preprocess variables for theme_slick().

File

src/SlickDefault.php, line 92

Class

SlickDefault
Defines shared plugin default settings for field formatter and Views style.

Namespace

Drupal\slick

Code

public static function jsSettings() {
  return [
    'asNavFor' => '',
    'prevArrow' => 'Previous',
    'nextArrow' => 'Next',
    'downArrowTarget' => '',
    'downArrowOffset' => '',
    'lazyLoad' => 'ondemand',
    'rows' => 1,
    'slidesPerRow' => 1,
    'slide' => '',
    'slidesToShow' => 1,
    'vertical' => FALSE,
  ];
}