Back to Devexpress

DxEditorButton.NavigateUrl Property

blazor-devexpress-dot-blazor-dot-dxeditorbutton-7d71bff6.md

latest1.9 KB
Original Source

DxEditorButton.NavigateUrl Property

Specifies the button’s target URL.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public string NavigateUrl { get; set; }

Property Value

TypeDescription
String

A URL to which the client web browser navigates.

|

Remarks

The following code snippet adds the Send E-mail button to the Masked Input component.

razor
<DxMaskedInput Value="@Email"
               ValueChanged="@((string value) => OnEmailChanged(value))"
               Mask="@EmailMask"
               MaskMode="MaskMode.RegEx">
    <Buttons>
        <DxEditorButton IconCssClass="editor-icon editor-icon-mail"
                        Tooltip="Send Email"
                        NavigateUrl="@EmailLink"
                        CssClass="dx-demo-editor-width" />
    </Buttons>
</DxMaskedInput>

@code{
    string Email { get; set; } = "[email protected]";
    string EmailMask { get; set; } = @"(\w|[.-])+@(\w|-)+\.(\w|-){2,4}";
    string EmailLink { get; set; } = "mailto:[email protected]";
    void OnEmailChanged(string email) {
        Email = email;
        EmailLink = $"mailto:{email}";
    }
}
css
.dx-demo-editor-width {
    max-width: 320px;
    width: 100%;
}

Run Demo: Editors - Command Buttons

See Also

DxEditorButton Class

DxEditorButton Members

DevExpress.Blazor Namespace