mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Add input field to provide colors for tag categories
This commit is contained in:
@ -8,6 +8,7 @@ module Comp.FixedDropdown exposing
|
||||
, initTuple
|
||||
, update
|
||||
, view
|
||||
, viewString
|
||||
)
|
||||
|
||||
import Html exposing (..)
|
||||
@ -101,6 +102,11 @@ view selected model =
|
||||
]
|
||||
|
||||
|
||||
viewString : Maybe String -> Model String -> Html (Msg String)
|
||||
viewString selected model =
|
||||
view (Maybe.map (\s -> Item s s) selected) model
|
||||
|
||||
|
||||
renderItems : Item a -> Html (Msg a)
|
||||
renderItems item =
|
||||
div [ class "item", onClick (SelectItem item) ]
|
||||
|
Reference in New Issue
Block a user