/elm-simple-pagenate

A elm simple pagenater.

Primary LanguageElmOtherNOASSERTION

elm-simple-pagenate

A elm simple pagenater.

Usage

import SimplePager

type Msg =
  ClickPager Int

view model =
  div [] [
    SimplePager.viewPager {
      currentPage = model.currentPage,
      totalPage = model.totalPage,
      pageRangeDisplayed = 2,
      customPreviousLabel = Nothing,
      customNextLabel = Nothing,
      customPageRangeLabel = Nothing,
      breakLabel = Nothing,
      pageClassName = Nothing,
      previousClassName = Nothing,
      nextClassName = Nothing,
      breakClassName = Nothing,
      onClickPager = ClickPager
    }
  ]

image

search

Test

# Project initialize
npm i
# Run test.
npx elm-test