Create a simple link. Used when the link itself is in a paragraph.
--
import Prima.Pyxis.Link as Link
...
myLink : Link.Config
myLink =
Link.simple "Visit site" "https://www.prima.it"Create a standalone link. Used when the link itself stands alone.
--
import Prima.Pyxis.Link as Link
...
myLink : Link.Config
myLink =
Link.standalone "Visit site" "https://www.prima.it"Adds a generic attribute to the Link.
Adds classes to the classList of the Link.
Add a[target="_blank"] attr to the Config.
--
import Prima.Pyxis.Link as Link
...
myLink : Link.Config
myLink =
"https://www.prima.it"
|> Link.simple "Visit site"
|> Link.withTargetBlankAdd a[target="_parent"] attr to the Config.
--
import Prima.Pyxis.Link as Link
...
myLink : Link.Config
myLink =
"https://www.prima.it"
|> Link.simple "Visit site"
|> Link.withTargetParentAdd a[target="_self"] attr to the Config.
--
import Prima.Pyxis.Link as Link
...
myLink : Link.Config
myLink =
"https://www.prima.it"
|> Link.simple "Visit site"
|> Link.withTargetSelfAdd a[target="_top"] attr to the Config.
--
import Prima.Pyxis.Link as Link
...
myLink : Link.Config
myLink =
"https://www.prima.it"
|> Link.simple "Visit site"
|> Link.withTargetTopAdds an onClick Html.Event to the Link.
Adds an onMouseDown Html.Event to the Link.
Adds an onMouseUp Html.Event to the Link.
Adds an onMouseEnter Html.Event to the Link.
Adds an onMouseLeave Html.Event to the Link.
Adds an onMouseOver Html.Event to the Link.
Adds an onMouseOut Html.Event to the Link.
Represent the configuration of a
Link.