YUI recommends YUI3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

This documentation is no longer maintained.

Yahoo! UI Library

paginator  2.9.0

Yahoo! UI Library > paginator > YAHOO.widget.Paginator.ui.JumpToPageDropdown
Search:
 
Filters

Class YAHOO.widget.Paginator.ui.JumpToPageDropdown

ui Component to generate the jump-to-page dropdown

Constructor

YAHOO.widget.Paginator.ui.JumpToPageDropdown ( p )
Parameters:
p <Pagintor> Paginator instance to attach to

Properties

select - private HTMLElement

select node

Methods

destroy

private void destroy ( )
Removes the select node and clears event listeners

init

static void init ( p )
Decorates Paginator instances with new attributes. Called during Paginator instantiation.
Parameters:
p <Paginator> Paginator instance to decorate

onChange

void onChange ( e )
Listener for the select's onchange event. Sent to setPage method.
Parameters:
e <DOMEvent> The change event

rebuild

void rebuild ( )
(Re)generate the select options.

render

HTMLElement render ( id_base )
Generate the select and option nodes and returns the select node.
Parameters:
id_base <string> used to create unique ids for generated nodes

update

void update ( e )
Select the appropriate option if changed.
Parameters:
e <CustomEvent> The calling change event

Events

beforeJumpToPageDropdownClassChange

beforeJumpToPageDropdownClassChange ( event )
Fires before the value for the configuration attribute 'jumpToPageDropdownClass' changes. Return false to cancel the attribute change.
Parameters:
event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

jumpToPageDropdownClassChange

jumpToPageDropdownClassChange ( event )
Fires when the value for the configuration attribute 'jumpToPageDropdownClass' changes.
Parameters:
event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

Configuration Attributes

jumpToPageDropdownClass - object

CSS class assigned to the select node
Default Value: 'yui-pg-jtp-options'


Copyright © 2011 Yahoo! Inc. All rights reserved.