Dots - globules-io/OGX.JS GitHub Wiki

Dots is a very simple object to display the number of slides/panels/views and to indicate which slide/panel/view is currently displayed. It is automatically created as part of a Carousel if the dots parameter is set to true

Carousel + Dots

Dots in Carousel

Stack

Extends

 Touch

Create

 let config = {
      el:_STRING_, //selector
      current:_INT_, //the current active light
      total:_INT_, //the total of lights to display
      clickable:_BOOL_ //if the lights are clickable
 };

 let dots = new OGX.Object.create('Dots', config);

Methods

 dots.select(_INDEX_);

Destroy

 dots.destroy();
⚠️ **GitHub.com Fallback** ⚠️