-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathTableFooter.js
53 lines (52 loc) · 2.1 KB
/
TableFooter.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import React from 'react';
import Pagination from './Pagination';
import ADPagination from './ADPagination';
export default function TableFooter(props){
if(props.config.show_info==true || props.config.show_pagination==true){
return (
<div className="row table-foot asrt-table-foot" id={(props.id) ? props.id + "-table-foot" : ""}>
<div className="col-md-6">
{(props.config.show_info) ? props.paginationInfo : null}
</div>
<div className="col-md-6 pull-right text-right">
{(props.config.show_pagination) ? (
<nav aria-label="Page navigation" className="pull-right">
<ul className="pagination justify-content-end asrt-pagination">
{props.config.pagination == "basic" ? (
<Pagination
config={props.config}
isFirst={props.isFirst}
isLast={props.isLast}
pages={props.pages}
page_number={props.page_number}
is_temp_page={props.is_temp_page}
temp_page_number={props.temp_page_number}
previousPage={props.previousPage}
firstPage={props.firstPage}
nextPage={props.nextPage}
lastPage={props.lastPage}
goToPage={props.goToPage}
onPageChange={props.onPageChange}
onPageBlur={props.onPageBlur} />
) : (
<ADPagination
language={props.config.language}
isFirst={props.isFirst}
isLast={props.isLast}
pages={props.pages}
page_number={props.page_number}
previousPage={props.previousPage}
nextPage={props.nextPage}
goToPage={props.goToPage}/>
)
}
</ul>
</nav>
) : null}
</div>
</div>
);
} else {
return null;
}
}