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",
|
"name": "NoRedInk/elm-sortable-table",
|
||||||
"summary": "Sortable tables for whatever data you want to display.",
|
"summary": "Sortable tables for whatever data you want to display.",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"exposed-modules": [
|
"exposed-modules": [
|
||||||
"Table"
|
"Table"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module Table exposing
|
module Table exposing
|
||||||
( view
|
( view
|
||||||
, config, stringColumn, intColumn, floatColumn
|
, config, stringColumn, intColumn, floatColumn
|
||||||
, State, initialSort
|
, State, initialSort, initialRevSort
|
||||||
, Column, customColumn, veryCustomColumn
|
, Column, customColumn, veryCustomColumn
|
||||||
, Sorter, unsortable, increasingBy, decreasingBy
|
, Sorter, unsortable, increasingBy, decreasingBy
|
||||||
, increasingOrDecreasingBy, decreasingOrIncreasingBy
|
, increasingOrDecreasingBy, decreasingOrIncreasingBy
|
||||||
|
@ -88,6 +88,10 @@ initialSort : String -> State
|
||||||
initialSort header =
|
initialSort header =
|
||||||
State header False
|
State header False
|
||||||
|
|
||||||
|
initialRevSort : String -> State
|
||||||
|
initialRevSort header =
|
||||||
|
State header True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- CONFIG
|
-- CONFIG
|
||||||
|
|
Loading…
Reference in New Issue