Skip to content

Allow For Custom Indicators Selector To Be Passed To Carousel Constructor #14431

@KyleNeedham

Description

@KyleNeedham

Currently the carousel indicators will only toggle states if you use .carousel-indicators selector, which has very specific CSS making style overrides messy.

Allowing for indicators option will make it easy to create custom indicators that keep in sync with the current active slide.

It could be as simple as:
this.$indicators = this.$element.find(options.indicators || '.carousel-indicators')

Then initialize like:
$('#my-carousel').carousel({ indicators: '.custom-indicators' })

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions