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.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(500)]
[Parameter]
public int InputDelay { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Int32 | 500 | 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:
<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