widgets\Pjax init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

widgets\Pjax $timeout

$timeout public property Pjax timeout setting (in milliseconds). This timeout is used when making AJAX requests. Use a bigger number if your server is slow. If the server does not respond within the timeout, a full page load will be triggered. public integer $timeout = 1000

widgets\Pjax $submitEvent

$submitEvent public property (available since version 2.0.9) The jQuery event that will trigger form handler. Defaults to "submit". public string $submitEvent = 'submit'

widgets\Pjax $scrollTo

$scrollTo public property How to scroll the page when pjax response is received. If false, no page scroll will be made. Use a number if you want to scroll to a particular place. public boolean|integer $scrollTo = false

widgets\Pjax $options

$options public property The HTML attributes for the widget container tag. The following special options are recognized: tag: string, the tag name for the container. Defaults to div This option is available since version 2.0.7. See also yii\helpers\Html::tag(). See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $options = []

widgets\Pjax $linkSelector

$linkSelector public property The jQuery selector of the links that should trigger pjax requests. If not set, all links within the enclosed content of Pjax will trigger pjax requests. If set to false, no code will be registered to handle links. Note that if the response to the pjax request is a full page, a normal request will be sent again. public string|false $linkSelector = null

widgets\Pjax $formSelector

$formSelector public property The jQuery selector of the forms whose submissions should trigger pjax requests. If not set, all forms with data-pjax attribute within the enclosed content of Pjax will trigger pjax requests. If set to false, no code will be registered to handle forms. Note that if the response to the pjax request is a full page, a normal request will be sent again. public string|false $formSelector = null

widgets\Pjax $enableReplaceState

$enableReplaceState public property Whether to enable replace state. public boolean $enableReplaceState = false

widgets\Pjax $enablePushState

$enablePushState public property Whether to enable push state. public boolean $enablePushState = true

widgets\Pjax $clientOptions

$clientOptions public property Additional options to be passed to the pjax JS plugin. Please refer to the pjax project page for available options. public array $clientOptions = null