This library is the basic controls for your model's select2 object and some helper methods
#Basic Controls
Create a new instance of the selectTwo record in your model
modify selectTwo record in your model
set the search parameter in your selectTwo record
turn a list of Tuples into a list of GroupSelectTwoOptions with one group. The first parameter is their shared trigger message, the second parameter is the list of tuples which are formatted as (Key, "Display"), and the return can be used in the list option of the config
[ ( Just "a", "a" )
, ( Just "b", "b" )
, ( Just "c", "c" )
]
|> SelectTwo.basicSelectOptions Testturn a list of Tuples3 into a list of GroupSelectTwoOptions with actual grouping. The first parameter is their shared trigger message, the second parameter is the list of tuples which are formatted as (Key, "Display", "Group Name"), and the return can be used in the list option of the config
[ ( Just "a", "a", "Group 1")
, ( Just "b", "b", "Group 1")
, ( Just "c", "c", "Group 2")
]
|> SelectTwo.basicSelectOptions Test
used in your elm project's update as a way to control the select two boxes on screen it is used by