File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed
Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -25,25 +25,18 @@ export default class CustomPaginationPanel extends React.Component {
2525 super ( props ) ;
2626 }
2727
28- onToggleDropDown = ( onToggleDropDown ) => {
29- // do your stuff here
30- console . log ( 'toggle dropdown' ) ;
31- onToggleDropDown ( ) ;
32- }
33-
3428 renderPaginationPanel = ( props ) => {
3529 return (
3630 < div >
37- < div className = 'col-md-6 col-xs-6 col-sm-6 col-lg-6' >
38- < div className = 'btn-group' role = 'group' >
39- < button type = 'button' className = 'btn btn-default' > Left</ button >
40- < button type = 'button' className = 'btn btn-default' > Middle</ button >
41- < button type = 'button' className = 'btn btn-default' > Right</ button >
42- </ div >
43- </ div >
44- < div className = 'col-md-6 col-xs-6 col-sm-6 col-lg-6' >
31+ < div > { props . components . pageList } </ div >
32+ < div >
33+ < span > Change size per page: </ span >
4534 { props . components . sizePerPageDropdown }
46- { props . components . pageList }
35+ </ div >
36+ < div >
37+ < button onClick = { ( ) => props . changeSizePerPage ( 25 ) } className = 'btn btn-default' > Click to force size per page as 25</ button >
38+ < button onClick = { ( ) => props . toggleDropDown ( ) } className = 'btn btn-default' > Click to force toggle dropdown</ button >
39+ < button onClick = { ( ) => props . changePage ( 3 ) } className = 'btn btn-default' > Jump to page 3</ button >
4740 </ div >
4841 </ div >
4942 ) ;
You can’t perform that action at this time.
0 commit comments