carboncloud/ui-library/3.0.0

NOTE: the latest version is 9.1.0

Ui.Pagination

Defines a Pagination component

Types

type Model

The Pagination model

Model

init : Int -> Int -> Result String Model

Creates a model for the component

Returns the current page number

Views

-> { siblingCount : Int
, boundaryCount : Int
, onNav : Model -> msg
}
-> Html msg

Returns a view of a pagination component. This should be used whenever possible. You can use customView if you need to customize the button.

List (Attribute Never)
-> Model
-> { siblingCount : Int
, boundaryCount : Int
, onNav : Model -> msg
}
-> Html msg

Returns a custom view of a pagination component. Only use this when view is not enough.