EngageSoftware / elm-engage-common / Engage.Form.Company

Form.Company


type Msg

The Msg type


type State

The State type

cast : Types.CompaniesData other -> Types.CompaniesData {}

Cast a CompaniesData

completedView : { a | localization : Engage.Localization.Localization } -> Types.CompaniesData data -> Html msg

Get a completed view

emptyForm : Basics.Int -> String -> { id : Basics.Int, name : String, stepResponse : Engage.RemoteData.WebData a, companies : Types.CompaniesData {}, state : State }

Get an empty form

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

Get the form view

initialState : State

Get the initial state

isValid : State -> Basics.Bool

Check if the State is valid

update : Msg -> State -> Types.CompaniesData data -> ( State, Types.CompaniesData data, Platform.Cmd.Cmd Msg )

Update a CompaniesData

validateAll : State -> Engage.Entity.Address.RegionsCountry -> Types.CompaniesData data -> State

Validate all fields