$uiButtonLoader function

DOMElement $uiButtonLoader({
  1. dynamic id,
  2. String? field,
  3. dynamic classes,
  4. dynamic style,
  5. dynamic buttonClasses,
  6. dynamic buttonStyle,
  7. Map<String, String>? attributes,
  8. dynamic content,
  9. bool commented = false,
  10. bool? withProgress,
  11. dynamic loadingConfig,
})

DOMElement tag ui-button-loader for UIButtonLoader.

Implementation

DOMElement $uiButtonLoader(
    {id,
    String? field,
    classes,
    style,
    buttonClasses,
    buttonStyle,
    Map<String, String>? attributes,
    content,
    bool commented = false,
    bool? withProgress,
    dynamic loadingConfig}) {
  return $tag(
    'ui-button-loader',
    id: id,
    classes: classes,
    style: style,
    attributes: {
      if (field != null && field.isNotEmpty) 'field': field,
      if (buttonClasses != null)
        'button-classes':
            parseStringFromInlineList(buttonClasses)?.join(',') ?? '',
      if (buttonClasses != null) 'button-style': CSS(buttonStyle).style,
      if (withProgress != null) 'with-progress': '$withProgress',
      if (loadingConfig != null)
        'loading-config': (loadingConfig is UILoadingConfig
            ? loadingConfig.toInlineProperties()
            : '$loadingConfig'),
      ...?attributes
    },
    content: content,
    commented: commented,
  );
}