fieldset function
The <fieldset> HTML element is used to group several controls as well as labels (<label>) within a web form.
name
: The name associated with the group.disabled
: If this Boolean attribute is set, all form controls that are descendants of the <fieldset>, are disabled, meaning they are not editable and won't be submitted along with the <form>. They won't receive any browsing events, like mouse clicks or focus-related events. By default browsers display such controls grayed out. Note that form elements inside the <legend> element won't be disabled.
Implementation
Component fieldset(List<Component> children,
{String? name,
bool? disabled,
Key? key,
String? id,
String? classes,
Styles? styles,
Map<String, String>? attributes,
Map<String, EventCallback>? events}) {
return DomComponent(
tag: 'fieldset',
key: key,
id: id,
classes: classes,
styles: styles,
attributes: {
...attributes ?? {},
if (name != null) 'name': name,
if (disabled == true) 'disabled': '',
},
events: events,
children: children,
);
}