flarebyte/bubblegum-ui-textarea/1.0.1

Bubblegum.TextArea.Widget

A flexible textarea widget with the following features:

  • Supports multiple languages as well as right to left writing.
  • The widget and the content do not have to use the same language.
  • You can define targets in term of number of characters or words, and display the progress against them.
  • You can add various tags to describe the content or the status of the content (ex: warning tag)

Please have a look at the main documentation for more details about the possible settings.

view : Model msg -> Model -> Model -> Model -> Html msg

View for the widget

attr key value = { id = Nothing , key = key, facets = [], values = [value]}


adapter = { onInput = OnInputContent }
userSettings = { attributes = [attr ui_userLanguage "en-US"] }
settings = { attributes = [attr ui_label "My Story"] }
state = { attributes = [attr ui_content "Once upon a time ..."] }


view adapter userSettings settings state