Back to Devexpress

DxHtmlEditor.InputDelay Property

blazor-devexpress-dot-blazor-dot-dxhtmleditor-b2325b75.md

latest1.8 KB
Original Source

DxHtmlEditor.InputDelay Property

Specifies a delay between the last user change and the Markup property value update. Applied in HtmlEditorBindMarkupMode.OnDelayedInput mode only.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(500)]
[Parameter]
public int InputDelay { get; set; }

Property Value

TypeDefaultDescription
Int32500

A delay in milliseconds.

|

Remarks

This property is in effect if BindMarkupMode is set to OnDelayedInput. The InputDelay property specifies the delay between the last user change and the consequent Markup property value update. The default value is 500 ms.

The following code snippet updates the Markup property value in 2 seconds (2,000 ms) after the last user change:

razor
<DxHtmlEditor @bind-Markup="@Markup"
              BindMarkupMode="HtmlEditorBindMarkupMode.OnDelayedInput"
              InputDelay="2000"
              Height="200px"
              Width="100%" />

<p>The result markup: @Markup</p>

@code {
    string Markup { get; set; } = "";
}

See Also

DxHtmlEditor Class

DxHtmlEditor Members

DevExpress.Blazor Namespace