YUI version 2.5.1

Rendering Paginator controls in disparate locations

Challenge:

By default, Paginator will render all of its controls inside container elements identified in the container configuration. However, it is sometimes desirable to render some controls (most commonly the CurrentPageReport) in other page locations.

Solution

Each of the Paginator's ui elements are instances of the various classes in the YAHOO.widget.Paginator.ui namespace. These classes can be instantiated individually, outside of the Paginator's render method. Each UI component class also has a render method that will return a DOM node that will auto-update as the Paginator changes.

Subscribe to the Paginator's rendered event to create any UI components that need special placement.

Proin at eros non eros adipiscing mollis. Donec semper turpis sed diam. Sed consequat ligula nec tortor. Integer eget sem. Ut vitae enim eu est vehicula gravida. Morbi ipsum ipsum, porta nec, tempor id, auctor vitae, purus. Pellentesque neque. Nulla luctus erat vitae libero. Integer nec enim. Phasellus aliquam enim et tortor.