Back to Devexpress

DxSplitButton.Target Property

blazor-devexpress-dot-blazor-dot-dxsplitbutton-fadd9596.md

latest1.7 KB
Original Source

DxSplitButton.Target Property

Specifies the target attribute’s value for the primary button.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public string Target { get; set; }

Property Value

TypeDefaultDescription
Stringnull

The target attribute’s value.

|

Remarks

Use the NavigateUrl property to specify a URL where the web browser navigates when the primary button is clicked. To specify where the browser should open the URL (for example, the current window or a new tab), use the Target property.

Example

The following code snippet opens the primary button’s NavigateUrl link in a new tab:

razor
<DxSplitButton Text="Blazor Components"
               RenderStyleMode="ButtonRenderStyleMode.Outline"
               NavigateUrl="https://docs.devexpress.com/Blazor/400725/blazor-components"
               Target="_blanc">
    <Items>
        <DxDropDownButtonItem Text="Demos"
                              NavigateUrl="https://demos.devexpress.com/blazor/" />
    </Items>
</DxSplitButton>

See Also

DxSplitButton Class

DxSplitButton Members

DevExpress.Blazor Namespace