nixCodeX / elm-bootstrap / Bootstrap.Pagination.Item

When you need more control over pagination items you would use the functions in this module.

item : ItemConfig msg

Creates an initial item configuration.

link : List (Html.Attribute msg) -> List (Html msg) -> ItemConfig msg -> Item msg

Create a pagination link (a) element.

span : List (Html.Attribute msg) -> List (Html msg) -> ItemConfig msg -> Item msg

Create a pagination span element.

active : Basics.Bool -> Bootstrap.Pagination.Internal.ItemConfig msg -> Bootstrap.Pagination.Internal.ItemConfig msg

Set this particular item as active/selected in the pagination widget.

disabled : Basics.Bool -> Bootstrap.Pagination.Internal.ItemConfig msg -> Bootstrap.Pagination.Internal.ItemConfig msg

Set this item as disabled. For links it will also set tabindex to -1 and override the clickhandler.

attrs : List (Html.Attribute msg) -> ItemConfig msg -> ItemConfig msg

Customize the (li) element container for a pagination item.


type alias ItemConfig msg =
Bootstrap.Pagination.Internal.ItemConfig msg

Opaque type representing configuration options for an item (regardless of whether its a Link or a Span).


type alias Item msg =
Bootstrap.Pagination.Internal.Item msg

Opaque type representing an pagination item.