Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider re-init and destroy #2428

Closed
wants to merge 1 commit into from
Closed

Slider re-init and destroy #2428

wants to merge 1 commit into from

Conversation

devgrok
Copy link

@devgrok devgrok commented Dec 6, 2015

These modifications allow the component to be re initialised with different options.

  • Use case: Meteor detects changes in options and expects to be able to pass them on to the component without regenerating the html (from it's perspective it hasn't changed).
  • If you want to change the speed at which the images transition etc

Also added a method to allow the component to be destroyed and for the image src url to revert back to it's state pre component init.

  • Use case: I used this together with print detection. I used css to layout the slides to fill the space but with the image set as a background image trying to get the content to flow around the images was problematic.

@acburst
Copy link
Collaborator

acburst commented Oct 25, 2017

In v1, with the class rewrite this has been made much easier to destroy and reinit.

@acburst acburst closed this Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants