ESL Carousel Info New

ESLCarouselInfo is a small plugin that renders dynamic textual information about an ESLCarousel instance.

Usage

Attributes

State object

The element exposes the following state properties available in the format template:

Notes on template engines

The formatter supports {name}, {{name}}, and {%name%} placeholders without spaces. Some template engines (e.g., Nunjucks/Liquid) may interpret {{..}} and {%..%}. If you use such engines in your HTML pipeline, prefer {name} placeholders or wrap the content in a raw block provided by your template engine.

Examples

  <esl-carousel-info format="Slide {current} of {total}"></esl-carousel-info>
  <esl-carousel-info format="{title} of {totalSlides}"></esl-carousel-info>
  <esl-carousel-info format="Progress: {percent}%"></esl-carousel-info>
  <esl-carousel-info target="#promo-carousel"></esl-carousel-info>