Fieldset is a handy block level element you can use to group form elements. Fieldset comes with the added benefit of disabling all child controls when we set it's disabled attribute.
View a fieldset standalone. To create a fieldset you start off with a basic configuration which you can compose of several optional elements.
Fieldset.config
|> Fieldset.asGroup
|> Fieldset.legend [] [ text "Radio buttons" ]
|> Fieldset.children
( Radio.radioList "myradios"
[ Radio.create [] "Option one"
, Radio.create [] "Option two"
, Radio.create [ Radio.disabled True] "I'm disabled"
]
)
|> Fieldset.viewCreate default config for a fieldset
Make the fieldset a field group
Disable a fieldset
Provide a legend for a set of fields
When you need to customize a fieldset with standard Html.Attribute attributes use this function
Opaque representation of the view configuration for a fieldset.