Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
99ee38ce
Commit
99ee38ce
authored
Nov 10, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(tablepanel): minor change
parent
d06b9401
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
public/app/panels/table/module.html
+1
-1
public/app/panels/table/module.ts
+7
-3
No files found.
public/app/panels/table/module.html
View file @
99ee38ce
...
...
@@ -7,7 +7,7 @@
<thead>
<tr>
<th
ng-repeat=
"col in table.columns"
>
<div
class=
"table-panel-table-header-inner"
ng-click=
"toggleColumnSort(col, $index)"
>
<div
class=
"table-panel-table-header-inner
pointer
"
ng-click=
"toggleColumnSort(col, $index)"
>
{{col.text}}
<span
class=
"table-panel-table-header-controls"
ng-if=
"col.sort"
>
<i
class=
"fa fa-caret-down"
ng-show=
"col.desc"
></i>
...
...
public/app/panels/table/module.ts
View file @
99ee38ce
...
...
@@ -37,9 +37,14 @@ export function tablePanel() {
}
function
appendPaginationControls
(
footerElem
)
{
var
paginationList
=
$
(
'<ul></ul>'
);
footerElem
.
empty
(
);
var
pageCount
=
data
.
rows
.
length
/
panel
.
pageSize
;
var
pageCount
=
Math
.
ceil
(
data
.
rows
.
length
/
panel
.
pageSize
);
if
(
pageCount
===
1
)
{
return
;
}
var
paginationList
=
$
(
'<ul></ul>'
);
for
(
var
i
=
0
;
i
<
pageCount
;
i
++
)
{
var
pageLinkElem
=
$
(
'<li><a href="#">'
+
(
i
+
1
)
+
'</a></li>'
);
paginationList
.
append
(
pageLinkElem
);
...
...
@@ -48,7 +53,6 @@ export function tablePanel() {
var
nextLink
=
$
(
'<li><a href="#">»</a></li>'
);
paginationList
.
append
(
nextLink
);
footerElem
.
empty
();
footerElem
.
append
(
paginationList
);
}
...
...
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