Skip to main content

DashboardExtensionsOptionBuilder.MobileLayout(Action<DashboardMobileLayoutOptionBuilder>) Method

Allows you to use the MobileLayout extension.

Namespace: DevExpress.DashboardAspNetCore

Assembly: DevExpress.Dashboard.v24.1.AspNetCore.dll

NuGet Package: DevExpress.AspNetCore.Dashboard

Declaration

public DashboardExtensionsOptionBuilder MobileLayout(
    Action<DashboardMobileLayoutOptionBuilder> config
)

Parameters

Name Type Description
config Action<DashboardMobileLayoutOptionBuilder>

A delegate used to configure the DashboardMobileLayoutOptionBuilder.

Returns

Type Description
DashboardExtensionsOptionBuilder

A reference to this instance after the operation has completed.

Remarks

The code sample below shows how to configure the mobile layout extension:

@(Html.DevExpress().Dashboard("dashboardControl1")
    .Width("100%")
    .Height("100%")
    .OnBeforeRender("onBeforeRender")
    .Extensions(ext => {
        ext.MobileLayout(options => {
            // ...
        });
    })
)
See Also