add initialRevSort
This commit is contained in:
parent
2d1117eac2
commit
b40d76e4bf
|
@ -0,0 +1 @@
|
|||
elm 0.19.1
|
2
elm.json
2
elm.json
|
@ -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"
|
||||
],
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue