$button function

DOMElement $button({
  1. Object? id,
  2. Object? name,
  3. Object? classes,
  4. Object? style,
  5. String? type,
  6. Map<String, dynamic>? attributes,
  7. Object? content,
  8. bool? hidden,
  9. bool disabled = false,
  10. bool commented = false,
})

Creates a button node.

Implementation

DOMElement $button(
        {Object? id,
        Object? name,
        Object? classes,
        Object? style,
        String? type,
        Map<String, dynamic>? attributes,
        Object? content,
        bool? hidden,
        bool disabled = false,
        bool commented = false}) =>
    $tag('button',
        id: id,
        classes: classes,
        style: style,
        attributes: {
          'type': isNotEmptyString(type) ? type! : 'button',
          if (name != null) 'name': name,
          if (disabled) 'disabled': disabled,
          ...?attributes
        },
        content: content,
        hidden: hidden,
        commented: commented);