area<L, V> function

DomElement<L, V> area<L, V>({
  1. String? key,
  2. List<String>? classes,
  3. Map<String, String>? attributes,
  4. Map<String, String>? styles,
  5. String? accesskey,
  6. String? alt,
  7. String? autocapitalize,
  8. String? contenteditable,
  9. String? coords,
  10. String? dir,
  11. String? download,
  12. String? draggable,
  13. String? hidden,
  14. String? href,
  15. String? id,
  16. String? itemprop,
  17. String? lang,
  18. String? media,
  19. String? ping,
  20. String? referrerpolicy,
  21. String? rel,
  22. String? role,
  23. String? shape,
  24. String? slot,
  25. String? spellcheck,
  26. String? tabindex,
  27. String? target,
  28. String? title,
  29. String? translate,
  30. Map<String, DomEventFn<L, V>>? events,
  31. DomLifecycleEventFn<L>? onCreate,
  32. DomLifecycleEventFn<L>? onUpdate,
  33. DomLifecycleEventFn<L>? onRemove,
  34. Iterable<DomNode<L, V>>? children,
  35. DomNode<L, V>? child,
  36. String? text,
})

Defines an area inside an image map that has predefined clickable areas. An image map allows geometric areas on an image to be associated with hyperlink.

Implementation

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

  /// Alternative text in case an image can't be displayed.
  String? alt,

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

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

  /// A set of values specifying the coordinates of the hot-spot region.
  String? coords,

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

  /// Indicates that the hyperlink is to be used for downloading a resource.
  String? download,

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

  /// The URL of a linked resource.
  String? href,

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

  /// Specifies a hint of the media for which the linked resource was
  /// designed.
  String? media,

  /// The ping attribute specifies a space-separated list of URLs
  /// to be notified if a user follows the hyperlink.
  String? ping,

  /// Specifies which referrer is sent when fetching the resource.
  String? referrerpolicy,

  /// Specifies the relationship of the target object to the link object.
  String? rel,

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

  ///
  String? shape,

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

  /// Specifies where to open the linked document (in the case of an
  /// <a> element) or where to display the response received
  /// (in the case of a <form> element)
  String? target,

  /// 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>(
    'area',
    key: key,
    classes: classes,
    attributes: <String, String>{
      if (accesskey != null) 'accesskey': accesskey,
      if (alt != null) 'alt': alt,
      if (autocapitalize != null) 'autocapitalize': autocapitalize,
      if (contenteditable != null) 'contenteditable': contenteditable,
      if (coords != null) 'coords': coords,
      if (dir != null) 'dir': dir,
      if (download != null) 'download': download,
      if (draggable != null) 'draggable': draggable,
      if (hidden != null) 'hidden': hidden,
      if (href != null) 'href': href,
      if (id != null) 'id': id,
      if (itemprop != null) 'itemprop': itemprop,
      if (lang != null) 'lang': lang,
      if (media != null) 'media': media,
      if (ping != null) 'ping': ping,
      if (referrerpolicy != null) 'referrerpolicy': referrerpolicy,
      if (rel != null) 'rel': rel,
      if (role != null) 'role': role,
      if (shape != null) 'shape': shape,
      if (slot != null) 'slot': slot,
      if (spellcheck != null) 'spellcheck': spellcheck,
      if (tabindex != null) 'tabindex': tabindex,
      if (target != null) 'target': target,
      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,
  );
}