mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 19:08:26 +00:00
Extend dropdown to display additional option info
Use this to display folder information when setting the folder on an item.
This commit is contained in:
@ -61,7 +61,7 @@ emptyModel : Model
|
||||
emptyModel =
|
||||
{ connectionModel =
|
||||
Comp.Dropdown.makeSingle
|
||||
{ makeOption = \a -> { value = a, text = a }
|
||||
{ makeOption = \a -> { value = a, text = a, additional = "" }
|
||||
, placeholder = "Select connection..."
|
||||
}
|
||||
, subject = ""
|
||||
@ -124,7 +124,7 @@ update flags msg model =
|
||||
|
||||
cm =
|
||||
Comp.Dropdown.makeSingleList
|
||||
{ makeOption = \a -> { value = a, text = a }
|
||||
{ makeOption = \a -> { value = a, text = a, additional = "" }
|
||||
, placeholder = "Select Connection..."
|
||||
, options = names
|
||||
, selected = List.head names
|
||||
|
Reference in New Issue
Block a user