$uiButton function

DOMElement $uiButton({
  1. dynamic id,
  2. String? field,
  3. dynamic classes,
  4. dynamic style,
  5. Map<String, String>? attributes,
  6. String? text,
  7. bool commented = false,
})

DOMElement tag ui-button for UIButton.

Implementation

DOMElement $uiButton({
  id,
  String? field,
  classes,
  style,
  Map<String, String>? attributes,
  String? text,
  bool commented = false,
}) {
  return $tag('ui-button',
      id: id,
      classes: classes,
      style: style,
      attributes: {
        if (field != null && field.isNotEmpty) 'field': field,
        ...?attributes
      },
      content: text,
      commented: commented);
}