Class \Prado\Web\UI\ActiveControls\TActivePager
TActivePager is the active control counter part of TPager.
When a page change is requested, TActivePager raises a callback instead of the traditional postback.
The \Prado\Web\UI\ActiveControls\onCallback event is raised during a callback request and it is raise after the \Prado\Web\UI\ActiveControls\onPageIndexChanged event.
Class hierarchy
- \Prado\Web\UI\ActiveControls\TActivePager implements IActiveControl, ICallbackEventHandler
- \Prado\Web\UI\WebControls\TPager implements INamingContainer
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.1.2
public
|
__construct() : mixed
Creates a new callback control, sets the adapter to
TActiveControlAdapter. If you override this class, be sure to set the
adapter appropriately by, for example, by calling this constructor.
|
public
|
|
public
|
|
public
|
handleCallback(mixed $sender, TCallbackEventParameter $param) : mixed
Event handler to the OnCallback active buttons or active dropdownlist.
This handler will raise the \Prado\Web\UI\ActiveControls\onCallback event |
public
|
onCallback(TCallbackEventParameter $param) : mixed
This method is invoked when a callback is requested. The method raises
'OnCallback' event to fire up the event handlers. If you override this
method, be sure to call the parent implementation so that the event
handler can be invoked.
|
public
|
raiseCallbackEvent(TCallbackEventParameter $param) : mixed
Raises the callback event. This method is required by {@see
ICallbackEventHandler} interface.
This method is mainly used by framework and control developers. |
public
|
render(mixed $writer) : mixed
Renders the control.
The method overrides the parent implementation by rendering the pager only when there are two or more pages. |
protected
|
buildListPager() : mixed
Builds a dropdown list pager
Override parent implementation to build Active dropdown lists.
|
protected
|
createPagerButton(string $buttonType, bool $enabled, string $text, string $commandName, string $commandParameter) : mixed
Creates a pager button.
Override parent implementation to create, depending on the button type, a TActiveLinkButton, a TActiveButton or a TActiveImageButton may be created. |