Closed kgashok closed 6 years ago
The approach I shall take is as follows:
type alias Model =
{ filePath : String
, ...
, postsToUpload : Maybe String
}
and textarea
in View as follows:
textarea
[ class "height-adjusting-textarea"
, id "update"
, placeholder "Update?"
, onInput UpdateStatus
, value model.status
]
[]
If postToUpload
is not Nothing
, then I will change the backgorund colour of textarea with id update
to be changed to yellow
.
How do I go about doing this?
Options
Which one is the preferred way to do it? And I would like help to accomplish it both ways.
Getting input from Slack Elm
Right now, the user could potentially refresh something and some appends might get lost.