abadi199 / elm-input-extra / Input.BigNumber

Big Number input. This is a number input for big number values that can't be stored using Int and uses String instead.

View

input : Options msg -> List (Html.Attribute msg) -> String -> Html msg

View function

Example:

type Msg = InputUpdated String | FocusUpdated Bool

Input.Number.input
    { onInput = InputUpdated
    , maxLength = Nothing
    , maxValue = 1000
    , minValue = 10
    , hasFocus = Just FocusUpdated
    }
    [ class "numberInput"
    ...
    ]
    model.currentValue


type alias Options msg =
{ maxLength : Maybe Basics.Int
, onInput : String -> msg
, hasFocus : Maybe (Basics.Bool -> msg) 
}

Options of the input component.

defaultOptions : (String -> msg) -> Options msg

Default value for Options. Params:

Value:

{ onInput = onInput
, maxLength = Nothing
, hasFocus = Nothing
}