Skip to content
Snippets Groups Projects

Resolve #3024039 "Carousel item wrapper"

3 files
+ 10
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -50,6 +50,7 @@ class ViewsBootstrapCarousel extends StylePluginBase {
$options['wrap'] = ['default' => TRUE];
$options['effect'] = ['default' => 'slide'];
$options['use_caption'] = ['default' => TRUE];
$options['carousel_item_classes'] = ['default' => ''];
$options['columns'] = ['default' => 1];
$options['breakpoints'] = ['default' => 'md'];
@@ -143,6 +144,13 @@ class ViewsBootstrapCarousel extends StylePluginBase {
'#default_value' => $this->options['effect'],
];
$form['carousel_item_classes'] = [
'#type' => 'textfield',
'#title' => $this->t('Carousel Item classes'),
'#description' => $this->t('Additionaly classes to add to divs with class carousel-item.'),
'#default_value' => $this->options['carousel_item_classes'],
];
$form['columns'] = [
'#type' => 'select',
'#title' => $this->t('Columns'),
Loading