Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
34a2c590
Commit
34a2c590
authored
Sep 22, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5117: Added `beforeFilter` and `afterFilter` JS events to `GridView`
parent
db99b5fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
yii.gridView.js
framework/assets/yii.gridView.js
+2
-2
No files found.
framework/CHANGELOG.md
View file @
34a2c590
...
@@ -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)
...
...
framework/assets/yii.gridView.js
View file @
34a2c590
...
@@ -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
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment