Select function

Component Select({
  1. String? className,
  2. String? style,
  3. String? id,
  4. String? name,
  5. String? value,
  6. bool multiple = false,
  7. bool required = false,
  8. bool disabled = false,
  9. bool autofocus = false,
  10. String? autocomplete,
  11. int? size,
  12. ValueChanged<List<String>>? onInput,
  13. ValueChanged<List<String>>? onChange,
  14. Component? child,
  15. List<Component>? children,
  16. Map<String, String>? attributes,
  17. Map<String, EventCallback>? events,
  18. Key? key,
})

A select element.

The HTML <select> element represents a control that provides a menu of options.

Implementation

Component Select({
  String? className,
  String? style,
  String? id,
  String? name,
  String? value,
  bool multiple = false,
  bool required = false,
  bool disabled = false,
  bool autofocus = false,
  String? autocomplete,
  int? size,
  ValueChanged<List<String>>? onInput,
  ValueChanged<List<String>>? onChange,
  Component? child,
  List<Component>? children,
  Map<String, String>? attributes,
  Map<String, EventCallback>? events,
  Key? key,
}) {
  return jaspr.select(
    resolveChildren(child, children),
    classes: className,
    styles: parseStyles(style),
    id: id,
    name: name,
    value: value,
    multiple: multiple,
    required: required,
    disabled: disabled,
    autofocus: autofocus,
    autocomplete: autocomplete,
    size: size,
    onInput: onInput,
    onChange: onChange,
    attributes: attributes,
    events: events,
    key: key,
  );
}