Module
Bonsai.Html.Attributes
- Package
- purescript-bonsai
- Repository
- grmble/purescript-bonsai
Bonsai HTML Attribute Helpers
Mostly transcribed from Elm with omissions - only the most frequently used.
#defaultValue Source
defaultValue :: forall msg. String -> Property msg
Defines an initial value which will be displayed in an input when it is added to the DOM. Unlike value, changing defaultValue after the input has been added to the DOM has no effect.
#placeholder Source
placeholder :: forall msg. String -> Property msg
Provide a hint to the user what can be entered in an input or textarea
#autocomplete Source
autocomplete :: forall msg. Boolean -> Property msg
Indicates if a form or input can have their values automatically completed by the browser.
#novalidate Source
novalidate :: forall msg. Boolean -> Property msg
This indicates that a form should not be validated when submitted.
#downloadAs Source
downloadAs :: forall msg. String -> Property msg
Indicates that clicking an a and area will download the resource, and that the downloaded resource will have the given filename.