A command pallet component.
Accepts Msg converter function and your commands.
CommandPallet.init CommandPalletMsg
[ ( "Increment", Increment )
, ( "Decrement", Decrement )
, ( "1", Set 1 )
, ( "11", Set 11 )
, ( "123", Set 123 )
, ( "151", Set 151 )
, ( "100", Set 100 )
, ( "101", Set 101 )
, ( "900", Set 900 )
]Attribute in elm-ui.
Use like below:
layout [ CommandPallet.inFront model.commandPallet ] <|
column [] [ text "your application..." ]Needs to be passed to update.
Subsciption for startup key, p.
Customizable subsciption for startup key.
Key type is in SwiftsNamesake/proper-keyboard.
Use showUpMsg in your application and customize command pallet startup.
Contains a current state for a command pallet.