Helpers for the view. Based on Fable.React: no css or other assumptions are made.
Modules | Description |
Function or value | Description |
Full Usage:
basicCheckbox form item messageDispatcher
Parameters:
'f
item : FormCheckboxModel<'f>
messageDispatcher : 'f -> unit
Returns: ReactElement
|
![]() ![]() ![]() ![]() ![]() ![]() Build a ReactElement 'input' with type 'checkbox' and the properties 'DefaultValue', 'OnChange' and 'Placeholder' set automatically
|
Full Usage:
basicField form item messageDispatcher
Parameters:
'a
item : FormInputModel<'a, 'b>
messageDispatcher : 'a -> unit
Returns: ReactElement
|
![]() ![]() ![]() ![]() ![]() ![]() Build a ReactElement 'input' with the correct 'DefaultValue', 'OnChange' and 'Placeholder' properties
|
Full Usage:
basicField' form item name messageDispatcher
Parameters:
'a
item : FormInputModel<'a, 'b>
name : string
messageDispatcher : 'a -> unit
Returns: ReactElement
|
![]() ![]() ![]() ![]() ![]() ![]() Build a ReactElement 'input' with the correct 'DefaultValue', 'OnChange', 'Name' and 'Placeholder' properties
|
Full Usage:
basicSelect form item messageDispatcher
Parameters:
'f
item : FormSelectModel<'f, 't>
messageDispatcher : 'f -> unit
Returns: ReactElement
|
![]() ![]() ![]() ![]() ![]() ![]() Build a ReactElement 'select' with the properties 'DefaultValue', 'OnChange' and 'Placeholder' set automatically, and a set of ReactElement 'option' with the 'Value' property set automatically
|
Full Usage:
checkboxBase form item messageDispatcher props
Parameters:
'f
item : FormCheckboxModel<'f>
messageDispatcher : 'f -> unit
props : IHTMLProp list
Returns: ReactElement
|
![]() ![]() ![]() ![]() ![]() ![]() Build a ReactElement 'input' with type 'checkbox' and the given props except for 'DefaultValue', 'OnChange' and 'Placeholder' that are set automatically
|
Full Usage:
defaultValue item
Parameters:
FormFieldModel<'f, 't>
Returns: string
Modifiers: inline Type parameters: 'f, 't |
|
Full Usage:
fieldBase form item messageDispatcher props
Parameters:
'a
item : FormInputModel<'a, 'b>
messageDispatcher : 'a -> unit
props : IHTMLProp list
Returns: ReactElement
|
![]() ![]() ![]() ![]() ![]() ![]() Build a ReactElement 'input' with the given props except for 'DefaultValue', 'OnChange' and 'Placeholder' that are set automatically
|
Full Usage:
onChange form item messageDispatcher ev
Parameters:
'f
item : FormFieldModel<'f, 't>
messageDispatcher : 'f -> unit
ev : Event
Modifiers: inline Type parameters: 'f, 't |
|
Full Usage:
selectBase form item messageDispatcher selectProps optionProps
Parameters:
'f
item : FormSelectModel<'f, 't>
messageDispatcher : 'f -> unit
selectProps : IHTMLProp list
optionProps : IHTMLProp list
Returns: ReactElement
|
![]() ![]() ![]() ![]() ![]() ![]() Build a ReactElement 'select' with properties given in the 'selectProps' parameter. The props 'DefaultValue', 'OnChange' and 'Placeholder' are set automatically Each value from the input FormSelectModel is represented by a ReactElement 'option': you can pass its HTML properties but the 'Value' is set automatically.
|