Skip to content

Commit

Permalink
FRONT-2471: Add disable_touch settings and rename pre_label at carous…
Browse files Browse the repository at this point in the history
…el.ui_patterns.yml and pattern-carousel.html.twig.
  • Loading branch information
abel-santos-corral committed Sep 20, 2021
1 parent 856e3b5 commit 8b84f7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion templates/patterns/carousel/carousel.ui_patterns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ carousel:
label: "With controls"
description: "With controls (default: false)."
preview: true
previous_label:
prev_label:
type: select
label: "Previous label"
description: "The previous label value."
Expand Down Expand Up @@ -43,6 +43,11 @@ carousel:
label: "Disable autoinit"
description: "Disable carousel autoinit on page load."
preview: false
disable_touch:
type: boolean
label: "Disable touch"
description: "Disable carousel swipe on touch."
preview: false
fields:
active_item:
type: "text"
Expand Down
3 changes: 2 additions & 1 deletion templates/patterns/carousel/pattern-carousel.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
'items': slides,
'fade': fade,
'with_controls': with_controls,
'previous_label': 'Previous'|t,
'prev_label': 'Previous'|t,
'next_label': 'Next'|t,
'with_indicators': with_indicators,
'disable_touch': disable_touch,
} %}

0 comments on commit 8b84f7e

Please sign in to comment.