EngageSoftware/elm-engage-common/5.1.1

NOTE: the latest version is 8.2.10

Engage.Form.Company

Form.Company

type Msg

The Msg type

type State

The State type

cast : CompaniesData other -> CompaniesData {}

Cast a CompaniesData

{ a | localization : Localization }
-> CompaniesData data
-> Html msg

Get a completed view

Int
-> String
-> { id : Int
, name : String
, stepResponse : WebData a
, companies : CompaniesData {}
, state : State
}

Get an empty form

form : FormArgs a -> State -> CompaniesData data -> Html Msg

Get the form view

Get the initial state

isValid : State -> Bool

Check if the State is valid

-> State
-> CompaniesData data
-> ( State, CompaniesData data, Cmd Msg )

Update a CompaniesData

validateAll : State -> RegionsCountry -> CompaniesData data -> State

Validate all fields