PageNumbersMixin

Overview

Mixin that adds a page (item) number and total page (item) count to a component like Carousel that renders its contents as pages.

API

wrap(original) method

Destructively wrap a node with elements to show page numbers.

Parameters:
  • original: Nodethe element that should be wrapped by page numbers