0.2.1 • Published 1 year ago

ab-paginate v0.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

this package replaced with @abasb75/paginate

npm install @abasb75/paginate --save

usage example :

import { useState } from 'react';

import {ABPaginate} from "@abasb75/paginate"; 

function App() {

  const [activePage,setActivePage] = useState(1);
  const pageRangeDisplayed = 4;

  return (<>
    <h1>page : {activePage}</h1>

    <ABPaginate
      activePage={activePage}
      lastPage={10}
      pageRangeDisplayed={pageRangeDisplayed}
      onChange={setActivePage}

    />
    
  </>
    
    
  );
}

export default App;

props :

Properties

PropertyPropTypeRequiredDefaultDescription
activePagenumber1
lastPagenumber1
pageRangeDisplayednumber4
onChangefunc()=>{}
listClassNamestring'ab-paginate-list-2857373'
itemClassNamestring'ab-paginate-item-1683646'
nextClassNamestring'ab-paginate-next-1837342'
previousClassNamestring'ab-paginate-prev-5567886'
firstClassNamestring'ab-paginate-first-3873878'
lastClassNamestring'ab-paginate-last-8866568'
disabledFirstClassNamestring'ab-paginate-dfirst-3203808'
disabledLastClassNamestring'ab-paginate-dlast-8843780'
disabledPreviousClassNamestring'ab-paginate-prev-4034800'
disabledNextClassNamestring'ab-paginate-next-1324686'
activeItemClassNamestring'ab-paginate-actv-5623876'
breakClassNamestring'ab-paginate-brek-4343078'
showNextPagebooltrue
showPreviousPagebooltrue
showFirstPagebooltrue
showLastPagebooltrue
nextPageLabelstring'next >'
previousPageLabelstring'< previous'
firstPageLabelstring'<<'
lastPageLabelstring'>>'
breakLabelstring'...'
0.2.1

1 year ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago