Optgroup function

Component Optgroup({
  1. required String label,
  2. String? className,
  3. String? style,
  4. String? id,
  5. bool disabled = false,
  6. Component? child,
  7. List<Component>? children,
  8. Map<String, String>? attributes,
  9. Map<String, EventCallback>? events,
  10. Key? key,
})

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,
  );
}