$select

El $select({

  1. String? className,
  2. String? id,
  3. String? name,
  4. String? value,
  5. bool? disabled,
  6. bool? multiple,
  7. bool? required,
  8. Map<String, dynamic>? style,
  9. Map<String, dynamic>? props,
  10. void onChange(
    1. SyntheticEvent
    )?,
  11. void onFocus(
    1. SyntheticFocusEvent
    )?,
  12. void onBlur(
    1. SyntheticFocusEvent
    )?,
})

Creates a <select> element wrapper for JSX-style composition.

Implementation

El $select({
  String? className,
  String? id,
  String? name,
  String? value,
  bool? disabled,
  bool? multiple,
  bool? required,
  Map<String, dynamic>? style,
  Map<String, dynamic>? props,
  void Function(SyntheticEvent)? onChange,
  void Function(SyntheticFocusEvent)? onFocus,
  void Function(SyntheticFocusEvent)? onBlur,
}) {
  final p = _buildJsxProps(
    className: className,
    id: id,
    style: style,
    props: props,
    onChange: onChange,
    onFocus: onFocus,
    onBlur: onBlur,
  );
  if (name != null) p['name'] = name;
  if (value != null) p['value'] = value;
  if (disabled != null) p['disabled'] = disabled;
  if (multiple != null) p['multiple'] = multiple;
  if (required != null) p['required'] = required;
  return El(_createJsxElement('select', p));
}