Support UI.disabledButton
While this isn't necessary, it tidies up the code a bit.
This commit is contained in:
parent
4d30a80487
commit
cf5d211477
1 changed files with 12 additions and 0 deletions
|
@ -124,6 +124,18 @@ simpleButton { label, handleClick } =
|
|||
}
|
||||
|
||||
|
||||
disabledButton :
|
||||
{ label : String }
|
||||
-> Html State.Msg
|
||||
disabledButton { label } =
|
||||
baseButton
|
||||
{ label = label
|
||||
, enabled = False
|
||||
, handleClick = State.DoNothing
|
||||
, extraClasses = []
|
||||
}
|
||||
|
||||
|
||||
textButton :
|
||||
{ label : String
|
||||
, handleClick : msg
|
||||
|
|
Loading…
Reference in a new issue