Optgroup function
An optgroup element.
The HTML <optgroup> element creates a grouping of options within a select element.
Implementation
Component Optgroup({
required String label,
String? className,
String? style,
String? id,
bool disabled = false,
Component? child,
List<Component>? children,
Map<String, String>? attributes,
Map<String, EventCallback>? events,
Key? key,
}) {
return jaspr.optgroup(
resolveChildren(child, children),
label: label,
classes: className,
styles: parseStyles(style),
id: id,
disabled: disabled,
attributes: attributes,
events: events,
key: key,
);
}