rudimentary attempt at options object support #784

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

This is probably best done leveraging the jQuery $.widget factory but thats a bit more work and i didnt want to do it if you werent keen on integrating it upstream. $.widget requires jQuery 1.8+ as well. Im happy to rework the plugin if you'd like to move that direction though.

This patch enables you to do things like:

$('.flexslider').flexslider('options', {maxItems: 3,minItems: 3, move: 0});

or

$('.flexslider').flexslider('options', {move: 0});

and have them rerender the slider on the fly. not all your options seem to be supported (e.g. keyboard) but they can be fixed where necessary.

I'm really sending this across as a "how do you want to handle this type of functionality" type of issue i suppose.

jeffikus closed this Apr 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment