Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add option to change size of navigator plugin #761

Open
topwebstudio opened this Issue · 2 comments

2 participants

@topwebstudio

Hi!
In my case I needed to change the size of the navigator plugin, and this had to be different from configuration of scrollable.
In other words, scrollable rotates one by one the items, and the navigator plugin - navigate 4.

This could be done with these changes:

        conf: {
            navi: '.navi',
            naviItem: null,     
            activeClass: 'active',
            indexed: false,
            idPrefix: null,

            // 1.2
            history: false,
            size: null // change
        }


            var api = $(this).data("scrollable"),
                 navi = conf.navi.jquery ? conf.navi : find(api.getRoot(), conf.navi), 
                 buttons = api.getNaviButtons(),
                 cls = conf.activeClass,
                 hashed = conf.history && !!history.pushState,
                 size = conf.size ? conf.size : api.getConf().size; // change

If you find this useful please add it to the next version.

@alibby251
Collaborator

Hi topweb,

Thanks for this - any chance you could please set this up as a pull request to the dev branch, so we can test it?

@topwebstudio

Yes here it is:
#772

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.