table<L, V> function

DomElement<L, V> table<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? background,
  8. String? bgcolor,
  9. String? border,
  10. String? contenteditable,
  11. String? dir,
  12. String? draggable,
  13. String? hidden,
  14. String? id,
  15. String? itemprop,
  16. String? lang,
  17. String? role,
  18. String? slot,
  19. String? spellcheck,
  20. String? tabindex,
  21. String? title,
  22. String? translate,
  23. Map<String, DomEventFn<L, V>>? events,
  24. DomLifecycleEventFn<L>? onCreate,
  25. DomLifecycleEventFn<L>? onUpdate,
  26. DomLifecycleEventFn<L>? onRemove,
  27. Iterable<DomNode<L, V>>? children,
  28. DomNode<L, V>? child,
  29. String? text,
})

Represents tabular data—that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.

Implementation

DomElement<L, V> table<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,

  /// Specifies the URL of an image file.
  ///
  ///
  /// Note: Although browsers and email clients may still
  /// support this attribute, it is obsolete. Use CSS
  /// background-image instead.
  String? background,

  /// Background color of the element.
  ///
  ///
  /// Note: This is a legacy attribute. Please use the
  /// CSS background-color property instead.
  String? bgcolor,

  /// The border width.
  ///
  ///
  /// Note: This is a legacy attribute. Please use the
  /// CSS border property instead.
  String? border,

  /// 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,

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

  /// 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,

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

  /// 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>(
    'table',
    key: key,
    classes: classes,
    attributes: <String, String>{
      if (accesskey != null) 'accesskey': accesskey,
      if (autocapitalize != null) 'autocapitalize': autocapitalize,
      if (background != null) 'background': background,
      if (bgcolor != null) 'bgcolor': bgcolor,
      if (border != null) 'border': border,
      if (contenteditable != null) 'contenteditable': contenteditable,
      if (dir != null) 'dir': dir,
      if (draggable != null) 'draggable': draggable,
      if (hidden != null) 'hidden': hidden,
      if (id != null) 'id': id,
      if (itemprop != null) 'itemprop': itemprop,
      if (lang != null) 'lang': lang,
      if (role != null) 'role': role,
      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,
  );
}