Class EnablePage

Enables or disables the given page of the Pager widget setup for the given element.

IMPORTANT: When constructed, it disables the given page as a form of initialization.


To use with auto-widgets (HTML API) as part of a trigger specification:

  • Action name: "enable-page".
  • Accepted string arguments: the number of the target page
  • Accepted options: none
<div class="lisn-pager" data-lisn-on-click="@enable-page:2 +target=#myEnableButton"></div>
<button id="myEnableButton"></button>

Implements

Methods

Constructors

Properties

Methods

Constructors

Properties

do: () => Promise<void>

Enables the page number given to the constructor. Numbers start at 1.

toggle: () => Promise<void>

Enables the page number given to the constructor, if it is disabled, otherwise disables it. Numbers start at 1.

undo: () => Promise<void>

Disables the page number given to the constructor. Numbers start at 1.

MMNEPVFCICPMFPCPTTAAATR