Back to Devexpress

DxRibbonItem.Target Property

blazor-devexpress-dot-blazor-dot-dxribbonitem-5d8b3331.md

latest1.9 KB
Original Source

DxRibbonItem.Target Property

Specifies where to display the URL linked to a Ribbon item.

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

A link target.

|

Remarks

Use the NavigateUrl property to specify a URL where the web browser navigates when a user clicks the Ribbon item. To specify where the browser should open the URL (in the current window, new tab, and so on), use the Target property.

Refer to the MDN documentation for available property values: target. If you do not specify the Target property value explicitly, the component applies the _self value.

The following code snippet opens the Ribbon item’s NavigateUrl in a new tab:

razor
<DxRibbon>
    <DxRibbonTab Text="Home">
        <DxRibbonGroup>
            <DxRibbonItem Text="DevExpress"
                          NavigateUrl="https://www.devexpress.com/"
                          Target="_blank" />
        </DxRibbonGroup>
    </DxRibbonTab>
</DxRibbon>

Implements

Target

See Also

DxRibbonItem Class

DxRibbonItem Members

DevExpress.Blazor Namespace