Commit 34a2c590 by Qiang Xue

Fixes #5117: Added `beforeFilter` and `afterFilter` JS events to `GridView`

parent db99b5fd
...@@ -214,6 +214,7 @@ Yii Framework 2 Change Log ...@@ -214,6 +214,7 @@ Yii Framework 2 Change Log
- Enh #4897: Added `yii\helpers\FileHelper::mimeMagicFile` (qiangxue) - Enh #4897: Added `yii\helpers\FileHelper::mimeMagicFile` (qiangxue)
- Enh #5058: Added `$pageSize` parameter to `Pagination::createUrl()` to allow creating URLs with arbitrary page sizes (cdcchen, qiangxue) - Enh #5058: Added `$pageSize` parameter to `Pagination::createUrl()` to allow creating URLs with arbitrary page sizes (cdcchen, qiangxue)
- Enh #5089: Added asset debugger panel (arturf, qiangxue) - Enh #5089: Added asset debugger panel (arturf, qiangxue)
- Enh #5117: Added `beforeFilter` and `afterFilter` JS events to `GridView` (kartik-v)
- Enh: Added support for using sub-queries when building a DB query with `IN` condition (qiangxue) - Enh: Added support for using sub-queries when building a DB query with `IN` condition (qiangxue)
- Enh: Supported adding a new response formatter without the need to reconfigure existing formatters (qiangxue) - Enh: Supported adding a new response formatter without the need to reconfigure existing formatters (qiangxue)
- Enh: Added `yii\web\UrlManager::addRules()` to simplify adding new URL rules (qiangxue) - Enh: Added `yii\web\UrlManager::addRules()` to simplify adding new URL rules (qiangxue)
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
* If the handler returns a boolean false, it will stop filter form submission after this event. As * If the handler returns a boolean false, it will stop filter form submission after this event. As
* a result, afterFilter event will not be triggered. * a result, afterFilter event will not be triggered.
*/ */
beforeFilter: 'beforeFilter.yiiGridView', beforeFilter: 'beforeFilter',
/** /**
* afterFilter event is triggered after filtering the grid and filtered results are fetched. * afterFilter event is triggered after filtering the grid and filtered results are fetched.
* The signature of the event handler should be: * The signature of the event handler should be:
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
* where * where
* - event: an Event object. * - event: an Event object.
*/ */
afterFilter: 'afterFilter.yiiGridView' afterFilter: 'afterFilter'
}; };
var methods = { var methods = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment