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.viewProvide a legend for a set of fields
Opaque representation of the view configuration for a fieldset.