atzzCokeK/elm-inputtext-with-count/1.0.0

NOTE: the latest version is 1.0.1

InputTextWithCount

This is a module useful when you want to make a inputText has the limited number of characters (not words).

NewConfig

{ classPrefix : String
, maxLength : Int
}
-> Config

With this function, you can make a Config. And then you can put it in the following view function.

config = newConfig {classPrefix = "message", maxLength = 400  }

InputText

Config
-> String
-> (String -> msg)
-> List (Attribute msg)
-> List (Html msg)
-> Html msg

Add a msg to receive a text which is input. And you can add attrs and elements if needed.