Skip to content

Added ability to bind to an item changed event, and specify the next / previous button text#7

Open
TomFromThePool wants to merge 4 commits intorichardscarrott:masterfrom
TomFromThePool:master
Open

Added ability to bind to an item changed event, and specify the next / previous button text#7
TomFromThePool wants to merge 4 commits intorichardscarrott:masterfrom
TomFromThePool:master

Conversation

@TomFromThePool
Copy link

Hi Richard,

I've been making use of your carousel plugin for a project and needed to add some extra options so that I can bind to the item change, and also specify the next / previous button text. Additionally, the current item will be decorated with a css class to allow for easy access from external code.

Hope you find these changes useful!

Tom

Tom Halligan added 4 commits May 1, 2013 11:37
Added the ability to register a handler for an itemChanged event which
is triggered whenever a new item is scrolled into view in the carousel.
CSS Class 'carousel-current' is applied to whichever item is the current
displayed item in the carousel.
Removed an unnecessary check for the end of the carousel, and added the
ability to specify the next / previous button text.
Additional info for new options
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.

1 participant