add initialRevSort

This commit is contained in:
setop 2023-11-29 10:40:30 +01:00
parent 2d1117eac2
commit b40d76e4bf
3 changed files with 7 additions and 2 deletions

1
.tool-versions Normal file
View File

@ -0,0 +1 @@
elm 0.19.1

View File

@ -3,7 +3,7 @@
"name": "NoRedInk/elm-sortable-table",
"summary": "Sortable tables for whatever data you want to display.",
"license": "BSD-3-Clause",
"version": "1.0.0",
"version": "1.0.1",
"exposed-modules": [
"Table"
],

View File

@ -1,7 +1,7 @@
module Table exposing
( view
, config, stringColumn, intColumn, floatColumn
, State, initialSort
, State, initialSort, initialRevSort
, Column, customColumn, veryCustomColumn
, Sorter, unsortable, increasingBy, decreasingBy
, increasingOrDecreasingBy, decreasingOrIncreasingBy
@ -88,6 +88,10 @@ initialSort : String -> State
initialSort header =
State header False
initialRevSort : String -> State
initialRevSort header =
State header True
-- CONFIG