Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
Yii Bootstrap 3
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Common
Yii Bootstrap 3
Commits
47648503
Commit
47648503
authored
Apr 02, 2012
by
Crisu83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made improvements to BootPager and changed the loading image
parent
a98e8b59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
BootGridView.php
widgets/BootGridView.php
+1
-1
BootPager.php
widgets/BootPager.php
+13
-10
No files found.
widgets/BootGridView.php
View file @
47648503
...
...
@@ -38,7 +38,7 @@ class BootGridView extends CGridView
*/
public
$pager
=
array
(
'class'
=>
'bootstrap.widgets.BootPager'
);
/**
* @var string the URL of the CSS file used by this
detail
view.
* @var string the URL of the CSS file used by this
grid
view.
* Defaults to false, meaning that no CSS will be included.
*/
public
$cssFile
=
false
;
...
...
widgets/BootPager.php
View file @
47648503
...
...
@@ -13,6 +13,15 @@
class
BootPager
extends
CLinkPager
{
/**
* @var string the text shown before page buttons. Defaults to ''.
*/
public
$header
=
''
;
/**
* @var string the URL of the CSS file used by this pager.
* Defaults to false, meaning that no CSS will be included.
*/
public
$cssFile
=
false
;
/**
* @var boolean whether to display the first and last items.
*/
public
$displayFirstAndLast
=
false
;
...
...
@@ -22,23 +31,17 @@ class BootPager extends CLinkPager
*/
public
function
init
()
{
if
(
$this
->
header
===
null
)
$this
->
header
=
''
;
// Bootstrap does not use a header
if
(
$this
->
nextPageLabel
===
null
)
$this
->
nextPageLabel
=
Yii
::
t
(
'bootstrap'
,
'Next'
)
.
' →'
;
$this
->
nextPageLabel
=
Yii
::
t
(
'bootstrap'
,
'Next'
)
.
' →'
;
if
(
$this
->
prevPageLabel
===
null
)
$this
->
prevPageLabel
=
'← '
.
Yii
::
t
(
'bootstrap'
,
'Previous'
);
$this
->
prevPageLabel
=
'← '
.
Yii
::
t
(
'bootstrap'
,
'Previous'
);
if
(
$this
->
firstPageLabel
===
null
)
$this
->
firstPageLabel
=
Yii
::
t
(
'bootstrap'
,
'First'
);
$this
->
firstPageLabel
=
Yii
::
t
(
'bootstrap'
,
'First'
);
if
(
$this
->
lastPageLabel
===
null
)
$this
->
lastPageLabel
=
Yii
::
t
(
'bootstrap'
,
'Last'
);
if
(
$this
->
cssFile
===
null
)
$this
->
cssFile
=
false
;
// Bootstrap has its own css
$this
->
lastPageLabel
=
Yii
::
t
(
'bootstrap'
,
'Last'
);
if
(
!
isset
(
$this
->
htmlOptions
[
'class'
]))
$this
->
htmlOptions
[
'class'
]
=
''
;
// would default to yiiPager
...
...
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