mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-19 16:01:57 +08:00
Added some documentation to new pjax attribute
This commit is contained in:
@@ -44,6 +44,8 @@
|
|||||||
// event - "click" jQuery.Event
|
// event - "click" jQuery.Event
|
||||||
// options - pjax options
|
// options - pjax options
|
||||||
//
|
//
|
||||||
|
// If the click event target has 'data-pjax="0"' attribute, the event is ignored, and no pjax call is made.
|
||||||
|
//
|
||||||
// Examples
|
// Examples
|
||||||
//
|
//
|
||||||
// $(document).on('click', 'a', $.pjax.click)
|
// $(document).on('click', 'a', $.pjax.click)
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ use yii\web\Response;
|
|||||||
* You may configure [[linkSelector]] to specify which links should trigger pjax, and configure [[formSelector]]
|
* You may configure [[linkSelector]] to specify which links should trigger pjax, and configure [[formSelector]]
|
||||||
* to specify which form submission may trigger pjax.
|
* to specify which form submission may trigger pjax.
|
||||||
*
|
*
|
||||||
|
* You may disable pjax for a specific link inside the container by adding `data-pjax="0"` attribute to this link.
|
||||||
|
*
|
||||||
* The following example shows how to use Pjax with the [[\yii\gridview\GridView]] widget so that the grid pagination,
|
* The following example shows how to use Pjax with the [[\yii\gridview\GridView]] widget so that the grid pagination,
|
||||||
* sorting and filtering can be done via pjax:
|
* sorting and filtering can be done via pjax:
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user