Fix package to correctly include sources files (18251a5)
Clean up non needed generics declared on Field classes (e2c13b9)
Mutualise Field definition via Fable.Form.Simple.Fields.Html
+ Introduce pipeline builder API (ef6c8fb)
Add supports for concrete type in Select/Radio fields (08d3531)
Make Fable.Form.Simple renderer agnostic (5431f94)
Remove Elmish dependency (b9f869c)
Fix Fable.Form
dependency version
Add support for ReadOnly
form/field (02e31e6)
Set it at the field level
Form.textField
// ...
|> Form.readOnly
// or
Form.textField
// ...
|> Form.readOnlyIf myCondition
Set it at the form level
let formValue : Form.View.Model<Values> = // ...
{ formValue with State = Form.View.State.Loading }
Add Form.disableIf
(28337d9)
Make it easier to add custom fields (533c062)
It is now easy to create custom form fields.
The drawback right now is that customising only the view requires a little more work than before. But I think the trade-off is worth it.
Before, people needed to fork Fable.Form.Simple
and Fable.Form.Simple.Bulma
to add custom fields. Now, they just need to implements IField
API and it is done.
Define how fields are represented thanks to the IField
, StandardRenderFieldConfig
, IStandardField
, IGenericField
and more.
Add FieldId
to most of field attributes because using only the label to detect field error don't guarantee a unique result.
For example, you can have two fields with a label "FirstName". Thanks to the field id you do "firstname-student" and "firstname-teacher"
Export removed Form.xxx
functions from Fable.Form.Simple
making transition to 2.0 easy
Form.succeed
Form.append
Form.disable
Form.andThen
Form.optional
Form.textField
Form.passwordField
Form.colorField
Form.dateField
Form.dateTimeLocalField
Form.numberField
Form.searchField
Form.telField
Form.timeField
Form.emailField
Form.textareaField
Form.checkboxField
Form.radioField
Form.selectField
Form.fileField
Form.group
Form.section
Form.fill
Form.rec mapFieldValues
Form.list
Form.meta
Form.mapValues
Add FileField
(by @amine-mejaouel) (GH-43)
Upgrade to Fable 4 and Feliz 2
Fix #24: Allows to customise the actions of the form.
Add support for more field type:
Color
Date
DateTimeLocal
Email
Number
Search
Tel
Time
Allow to pass any attributes to an input field using the new HtmlAttributes
property
Lower FSharp.Core requirement
Publish the *.fsi
fiels inside fable
folder
Initial release