th<L, V> function
DomElement<L, V>
th<L, V>({
- String? key,
- List<
String> ? classes, - Map<
String, String> ? attributes, - Map<
String, String> ? styles, - String? accesskey,
- String? autocapitalize,
- String? background,
- String? bgcolor,
- String? colspan,
- String? contenteditable,
- String? dir,
- String? draggable,
- String? headers,
- String? id,
- String? itemprop,
- String? lang,
- String? role,
- String? rowspan,
- String? scope,
- String? slot,
- String? spellcheck,
- String? tabindex,
- String? title,
- String? translate,
- Map<
String, DomEventFn< ? events,L, V> > - DomLifecycleEventFn<
L> ? onCreate, - DomLifecycleEventFn<
L> ? onUpdate, - DomLifecycleEventFn<
L> ? onRemove, - Iterable<
DomNode< ? children,L, V> > - DomNode<
L, V> ? child, - String? text,
A child of the element, it defines a cell as the header of a group of table cells. The nature of this group can be explicitly defined by the scope and headers attributes.
Implementation
DomElement<L, V> th<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 colspan attribute defines the number of columns a cell should span.
String? colspan,
/// 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,
/// IDs of the <th> elements which applies to this
/// element.
String? headers,
/// 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,
/// Defines the number of rows a table cell should span over.
String? rowspan,
/// Defines the cells that the header test (defined in the
/// th element) relates to.
String? scope,
/// 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>(
'th',
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 (colspan != null) 'colspan': colspan,
if (contenteditable != null) 'contenteditable': contenteditable,
if (dir != null) 'dir': dir,
if (draggable != null) 'draggable': draggable,
if (headers != null) 'headers': headers,
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 (rowspan != null) 'rowspan': rowspan,
if (scope != null) 'scope': scope,
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,
);
}