ydn-js origin

YUI version 2.6.0

Adding a "disabled" mask to Paginator controls

YAHOO.widget.Paginator does not include a disable method, and DataTable's disable method only masks the table itself. Masking the pagination controls when the DataTable is disabled can be accomplished in (at least) two ways:

  1. Solution #1: Add mask elements to the Paginator's containers and apply them in a similar fashion as the DataTable's mask in response to DataTable's disableEvent. This involves more code than #2, but the Paginator's masks will not potentially cover other elements (if the Paginator's containers were configured).
  2. Solution #2: Extend the DataTable's mask to encompass the Paginator's containers. This involves setting the DataTable container's position: relative and overriding the assigned mask dimensions in response to the DataTable's disableEvent.

Solution #1

Solution #2