Renders the button by receiving it's configuration.
--
import Prima.Pyxis.DownloadButton as DownloadButtonButton
type Msg =
Clicked
...
myBtn : DownloadButton.Config Msg
myBtn =
DownloadButton.default "Certificato di polizza" "Scarica .pdf"
|> DownloadButton.withDisabled False
|> DownloadButton.withOnClick Clicked
...
view : Html Msg
view =
DownloadButton.render myBtnAdds a generic attribute to the Button.
Adds a disabled Html.Attribute to the DownloadButton.
Adds a tabIndex Html.Attribute to the DownloadButton.
Adds a target Html.Attribute to the DownloadButton.
Adds a target Html.Attribute to the DownloadButton.
Adds a target Html.Attribute to the DownloadButton.
Adds a target Html.Attribute to the DownloadButton.
Tells the DownloadButton component to use SVG icons instead of Pyxis icons.
Adds an onClick Html.Event to the DownloadButton.
Adds an onMouseDown Html.Event to the DownloadButton.
Adds an onMouseUp Html.Event to the DownloadButton.
Adds an onMouseEnter Html.Event to the DownloadButton.
Adds an onMouseLeave Html.Event to the DownloadButton.
Adds an onMouseOver Html.Event to the DownloadButton.
Adds an onMouseOut Html.Event to the DownloadButton.
Represent the configuration of the
DownloadButton.