$uiButton function

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

DOMElement tag ui-button for UIButton.

Implementation

DOMElement $uiButton({
  Object? id,
  String? field,
  Object? classes,
  Object? 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,
  );
}