Other tasks
Task 4.1: Create a view element for input
input div [ class "form-element" ]
[ label [ class "label" ]
[ span [ class "label-text" ] [ text "Label" ]
, Html.input
[ class "input"
, classList [ ( "error", True ) ]
, value "Some text"
, onInput msg
]
[]
,
div [ role "alert", ariaLive "assertive" ]
[ p [ class "error-message" ] [ text "Error message" ] ]
]
]Task 4.2 Add a username to a comment (using Input)
Task 4.3
Last updated