我尝试通过样式颜色设置颜色,但它仅在未禁用时更改颜色。是否有可能使用或不使用 Fulma?
Button.button
[
Button.Disabled true
Button.Props [
Style [ Color "#000000" ] ]
//if … then
Button.OnClick (fun _ -> dispatch Msg)
]
[ str "Text here" ]
作为最后的手段,我会使用带有调度功能的 if 条件,这样按钮就没有用了。
提前致谢。