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
46040220
Commit
46040220
authored
Dec 29, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update output-sorting.md
typos
parent
3254a4ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
output-sorting.md
docs/guide/output-sorting.md
+2
-2
No files found.
docs/guide/output-sorting.md
View file @
46040220
...
@@ -4,7 +4,7 @@ Sorting
...
@@ -4,7 +4,7 @@ Sorting
Sometimes the data that is to be displayed should be sorted according to one or several attributes. If you are using
Sometimes the data that is to be displayed should be sorted according to one or several attributes. If you are using
a
[
data provider
](
output-data-providers.md
)
with one of the
[
data widgets
](
output-data-widgets.md
)
, sorting is
a
[
data provider
](
output-data-providers.md
)
with one of the
[
data widgets
](
output-data-widgets.md
)
, sorting is
handled for you automatically. If not, you should create a
[
[yii\data\Sort
]
] instance, configure it and
handled for you automatically. If not, you should create a
[
[yii\data\Sort
]
] instance, configure it and
apply it to the query. I can also be passed to the view, where it can be used to create links to sort by certain attributes.
apply it to the query. I
t
can also be passed to the view, where it can be used to create links to sort by certain attributes.
A typical usage example is as follows,
A typical usage example is as follows,
...
@@ -51,6 +51,6 @@ We pass the sort information to the Article query so that the query results are
...
@@ -51,6 +51,6 @@ We pass the sort information to the Article query so that the query results are
sorted by the orders specified by the Sort object. In the view, we show two hyperlinks
sorted by the orders specified by the Sort object. In the view, we show two hyperlinks
that can lead to pages with the data sorted by the corresponding attributes.
that can lead to pages with the data sorted by the corresponding attributes.
The
[
[yii\data\Sort|Sort
]
] class will o
p
tain the parameters passed with the request automatically
The
[
[yii\data\Sort|Sort
]
] class will o
b
tain the parameters passed with the request automatically
and adjust the sort options accordingly.
and adjust the sort options accordingly.
You can adjust the parameters by configuring the
[
[yii\data\Sort::$params|$params
]
] property.
You can adjust the parameters by configuring the
[
[yii\data\Sort::$params|$params
]
] property.
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