select<L, V> function

DomElement<L, V> select<L, V>({
  1. String? key,
  2. List<String>? classes,
  3. Map<String, String>? attributes,
  4. Map<String, String>? styles,
  5. String? accesskey,
  6. String? autocapitalize,
  7. String? autocomplete,
  8. String? contenteditable,
  9. String? dir,
  10. bool? disabled,
  11. String? draggable,
  12. String? form,
  13. String? hidden,
  14. String? id,
  15. String? itemprop,
  16. String? lang,
  17. bool? multiple,
  18. String? name,
  19. bool? required,
  20. String? role,
  21. String? size,
  22. String? slot,
  23. String? spellcheck,
  24. String? tabindex,
  25. String? title,
  26. String? translate,
  27. Map<String, DomEventFn<L, V>>? events,
  28. DomLifecycleEventFn<L>? onCreate,
  29. DomLifecycleEventFn<L>? onUpdate,
  30. DomLifecycleEventFn<L>? onRemove,
  31. Iterable<DomNode<L, V>>? children,
  32. DomNode<L, V>? child,
  33. String? text,
})

Represents a control that provides a menu of options.

Implementation

DomElement<L, V> select<L, V>({
  String? key,
  List<String>? classes,
  Map<String, String>? attributes,
  Map<String, String>? styles,

  /// Keyboard shortcut to activate or add focus to the element.
  String? accesskey,

  /// Sets whether input is automatically capitalized when entered by user
  String? autocapitalize,

  /// Indicates whether controls in this form can by default have their values
  /// automatically completed by the browser.
  String? autocomplete,

  /// Indicates whether the element's content is editable.
  String? contenteditable,

  /// Defines the text direction. Allowed values are ltr (Left-To-Right) or
  /// rtl (Right-To-Left)
  String? dir,

  /// Indicates whether the user can interact with the element.
  bool? disabled,

  /// Defines whether the element can be dragged.
  String? draggable,

  /// Indicates the form that is the owner of the element.
  String? form,

  /// Prevents rendering of given element, while keeping child elements, e.g.
  /// script elements, active.
  String? hidden,

  /// Often used with CSS to style a specific element. The value of this
  /// attribute must be unique.
  String? id,

  ///
  String? itemprop,

  /// Defines the language used in the element.
  String? lang,

  /// Indicates whether multiple values can be entered in an input of the type
  /// email or file.
  bool? multiple,

  /// Name of the element. For example used by the server to identify the
  /// fields in form submits.
  String? name,

  /// Indicates whether this element is required to fill out or not.
  bool? required,

  /// Defines an explicit role for an element for use by assistive technologies.
  String? role,

  /// Defines the width of the element (in pixels). If the element's
  /// type attribute is text or
  /// password then it's the number of characters.
  String? size,

  /// Assigns a slot in a shadow DOM shadow tree to an element.
  String? slot,

  /// Indicates whether spell checking is allowed for the element.
  String? spellcheck,

  /// Overrides the browser's default tab order and follows the one specified
  /// instead.
  String? tabindex,

  /// Text to be displayed in a tooltip when hovering over the element.
  String? title,

  /// Specify whether an element's attribute values and the values of its
  /// Text node
  /// children are to be translated when the page is localized, or whether to
  /// leave them unchanged.
  String? translate,
  Map<String, DomEventFn<L, V>>? events,
  DomLifecycleEventFn<L>? onCreate,
  DomLifecycleEventFn<L>? onUpdate,
  DomLifecycleEventFn<L>? onRemove,
  Iterable<DomNode<L, V>>? children,
  DomNode<L, V>? child,
  String? text,
}) {
  return DomElement<L, V>(
    'select',
    key: key,
    classes: classes,
    attributes: <String, String>{
      if (accesskey != null) 'accesskey': accesskey,
      if (autocapitalize != null) 'autocapitalize': autocapitalize,
      if (autocomplete != null) 'autocomplete': autocomplete,
      if (contenteditable != null) 'contenteditable': contenteditable,
      if (dir != null) 'dir': dir,
      if (disabled ?? false) 'disabled': 'disabled',
      if (draggable != null) 'draggable': draggable,
      if (form != null) 'form': form,
      if (hidden != null) 'hidden': hidden,
      if (id != null) 'id': id,
      if (itemprop != null) 'itemprop': itemprop,
      if (lang != null) 'lang': lang,
      if (multiple ?? false) 'multiple': 'multiple',
      if (name != null) 'name': name,
      if (required ?? false) 'required': 'required',
      if (role != null) 'role': role,
      if (size != null) 'size': size,
      if (slot != null) 'slot': slot,
      if (spellcheck != null) 'spellcheck': spellcheck,
      if (tabindex != null) 'tabindex': tabindex,
      if (title != null) 'title': title,
      if (translate != null) 'translate': translate,
      ...?attributes,
    },
    styles: styles,
    events: events,
    onCreate: onCreate,
    onUpdate: onUpdate,
    onRemove: onRemove,
    children: children,
    child: child,
    text: text,
  );
}