1111 * or submit itself to any jurisdiction.
1212 */
1313
14- import { h } from '/js/src/index.js' ;
14+ import { h , iconMediaStepBackward , iconMediaStepForward } from '/js/src/index.js' ;
1515import { iconArrowThickLeft , iconArrowThickRight } from '/js/src/icons.js' ;
1616
1717const MAX_VISIBLE_PAGES = 5 ;
@@ -51,6 +51,10 @@ const pageSelector = (currentPage, pagesCount, onPageChange) => {
5151 return h (
5252 '.btn-group#pageSelector' ,
5353 [
54+ h ( 'button.btn.mh1#pageMoveFirst' , {
55+ onclick : ( ) => onPageChange ( 1 ) ,
56+ disabled : currentPage === 1 ,
57+ } , iconMediaStepBackward ( ) ) ,
5458 h ( 'button.btn.mh1#pageMoveLeft' , {
5559 onclick : ( ) => onPageChange ( currentPage - 1 ) ,
5660 disabled : currentPage === 1 ,
@@ -60,6 +64,10 @@ const pageSelector = (currentPage, pagesCount, onPageChange) => {
6064 onclick : ( ) => onPageChange ( currentPage + 1 ) ,
6165 disabled : currentPage === pagesCount ,
6266 } , iconArrowThickRight ( ) ) ,
67+ h ( 'button.btn.mh1#pageMoveLast' , {
68+ onclick : ( ) => onPageChange ( pagesCount ) ,
69+ disabled : currentPage === pagesCount ,
70+ } , iconMediaStepForward ( ) ) ,
6371 ] ,
6472 ) ;
6573} ;
0 commit comments