$uiDialog function

DOMElement $uiDialog({
  1. dynamic id,
  2. String? field,
  3. dynamic classes,
  4. dynamic style,
  5. bool? show,
  6. bool? showCloseButton,
  7. Map<String, String>? attributes,
  8. dynamic content,
  9. bool commented = false,
})

DOMElement tag ui-dialog for UIDialog.

Implementation

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