DxWaitIndicator.CssClass Property
Specifies the CSS class name applied to the Wait Indicator.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v23.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
String | The CSS class name. |
Remarks
Use the CssClass
property to apply custom styles to the Wait Indicator.
<style>
.my-indicator {
<!-- your CSS rules -->
}
</style>
<DxButton Enabled="!isSending"
Click="Send"
RenderStyle="ButtonRenderStyle.Primary">
<div class="d-flex">
<DxWaitIndicator Visible="isSending"
CssClass="my-indicator" />
<span class="mx-2">@Message</span>
</div>
</DxButton>
@code{
bool isSending = false;
string Message => isSending ? "Sending..." : "Send";
private async Task Send() {
isSending = true;
await Task.Delay(3000);
isSending = false;
}
}
See Also