PageNumbersMixin

Adds a page number and total page count to a carousel-like element

Overview

This can be applied to components like Carousel that renders their content 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