Class DisablePage

Disables or enables the given page of the Pager widget setup for the given element.

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


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

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

Implements

Methods

Constructors

Properties

Methods

Constructors

Properties

do: () => Promise<void>

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

toggle: () => Promise<void>

Disables the page number given to the constructor, if it is enabled, otherwise enables it. Numbers start at 1.

undo: () => Promise<void>

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