Paginator.Url Class
Adds in URL options for paginator links.
Methods
formatPageUrl
-
[page]
Returns a formated URL for the provided page number.
Parameters:
-
[page]Number optionalPage value to be used in the formatted URL. If empty, page will be the value of the
pageATTRS.
Returns:
Formatted URL for the page or null if there is not a pageUrl set.
Attributes
pageUrl
String
URL to return formatted with the page number. URL uses Y.Lang.sub for page number stubstitutions.
For example, if the page number is 3, setting the pageUrl to "?pg={page}", will result in ?pg=3
Fires event pageUrlChange
Fires when the value for the configuration attribute pageUrl is
changed. You can listen for the event using the on method if you
wish to be notified before the attribute's value has changed, or
using the after method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
eEventFacadeAn Event Facade object with the following attribute-specific properties added:
