Back to Devexpress

DashboardBuilder.Extensions(Action<DashboardExtensionsOptionBuilder>) Method

dashboard-devexpress-dot-dashboardaspnetcore-dot-dashboardbuilder-dot-extensions-x28-system-dot-action-devexpress-dot-dashboardaspnetcore-dot-dashboardextensionsoptionbuilder-x29.md

latest2.3 KB
Original Source

DashboardBuilder.Extensions(Action<DashboardExtensionsOptionBuilder>) Method

Provides access to the registered extensions’ settings.

Namespace : DevExpress.DashboardAspNetCore

Assembly : DevExpress.Dashboard.v25.2.AspNetCore.dll

NuGet Package : DevExpress.AspNetCore.Dashboard

Declaration

csharp
public DashboardBuilder Extensions(
    Action<DashboardExtensionsOptionBuilder> extensionOption
)
vb
Public Function Extensions(
    extensionOption As Action(Of DashboardExtensionsOptionBuilder)
) As DashboardBuilder

Parameters

NameTypeDescription
extensionOptionAction<DashboardExtensionsOptionBuilder>

An action that provides an access to the registered extensions’ settings.

|

Returns

TypeDescription
DashboardBuilder

A reference to this instance after the operation has completed.

|

Remarks

The code example configures the MobileLayoutExtension‘s settings for the Web Dashboard:

cshtml
<div style="position: absolute; left:0;top:0;right:0;bottom:0;">
    @(Html.DevExpress().Dashboard("clientDashboardDesigner1")
            .Width("100%")
            .Height("100%")
            .WorkingMode(WorkingMode.Viewer)
            .Extensions (x => x.MobileLayout(y => y.MobileLayoutEnabled(MobileLayoutMode.Always)))
    )    
</div>

See Also

DashboardBuilder Class

DashboardBuilder Members

DevExpress.DashboardAspNetCore Namespace