--- title: Custom Pager Demo subTitle: Pager description: Custom Pager usage demo sort: 10 tags: - demo ---

Custom Pager

Note that the parent element (#bx-pager in this example), must contain an href tag for each slide. Each href tag must have a data-slide-index attribute that references the respecitve slide index (zero-based). See the HTML in this example. Also note that this method should not be used for dynamic carousels.

JS:

{{#markdown }} ``` $(document).ready(function(){ $('#demoSlider').bxSlider({ pagerCustom: '#bx-pager' }); }); ```

HTML:

```
``` {{/markdown}}