$uiButtonLoader function
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,
);
}