bramkragten / swipe-card

Card that allows you to swipe throught multiple cards for Home Assistant Lovelace
245 stars 36 forks source link

Swipe Card Template #27

Closed jazzyisj closed 2 years ago

jazzyisj commented 3 years ago

Having a template (like the custom button card) would be great.

I use several swipe cards throughout my lovelace, most with the same parameters. Would be nice to be able to template those to save on duplication and having to track them all down to make changes.

Love the card! Thank you!

jazzyisj commented 2 years ago

Forgot all about this. Mostly resolved by using an include directive for parameters.

parameters: !include /config/lovelace/lovelace_swipe_parameters_auto_height.yaml

the contents of which are...

autoHeight: true
centeredSlides: true
effect: coverflow
coverflowEffect:
  depth: 100
  modifier: 1
  rotate: 0
  scale: 1
  slideShadows: true
  stretch: 0
pagination:
  type: bullets
spaceBetween: 20
speed: 500