Back to Devexpress

DxAccordion.Target Property

blazor-devexpress-dot-blazor-dot-dxaccordion-d2c725ba.md

latest2.2 KB
Original Source

DxAccordion.Target Property

Specifies the target attribute’s value for all items.

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 item is clicked. 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 DxAccordion.Target property specifies the common target attribute’s value for all items in the Accordion. To override the attribute value for a specific item, use the DxAccordionItem.Target property.

In the following code snippet, all NavigateUrl links are opened in a new tab:

razor
<DxAccordion Target="_blank">
    <Items>
        <DxAccordionItem Text="Grid" NavigateUrl="https://demos.devexpress.com/blazor/Grid" />
        <DxAccordionItem Text="Navigation and Layout" NavigateUrl="https://demos.devexpress.com/blazor/Navigation" />
        <DxAccordionItem Text="Data Editors" NavigateUrl="https://demos.devexpress.com/blazor/Editors" />
        <DxAccordionItem Text="Scheduler" NavigateUrl="https://demos.devexpress.com/blazor/Scheduler" />
    </Items>
</DxAccordion>

See Also

DxAccordion Class

DxAccordion Members

DevExpress.Blazor Namespace