malsup / cycle2

2nd gen cycling
899 stars 236 forks source link

Anyway to dynamically change overlay templates after initialisation? #680

Open SionR opened 9 years ago

SionR commented 9 years ago

I've got a design where I want to show/hide the overlay description (but keep the title visible). E.g: overlayTemplate:'

{{title}}

' to overlayTemplate:'

{{title}}

{{desc}}

'

This toggle happens with user interaction (show/hide button). It seems that changing the cycle.opts has no effect because the overlayTemplate is a single initilise only.

Any ideas please? Thanks!