DashboardBuilder.Extensions(Action<DashboardExtensionsOptionBuilder>) Method
In This Article
Provides access to the registered extensions’ settings.
Namespace: DevExpress.DashboardAspNetCore
Assembly: DevExpress.Dashboard.v24.2.AspNetCore.dll
NuGet Package: DevExpress.AspNetCore.Dashboard
#Declaration
public DashboardBuilder Extensions(
Action<DashboardExtensionsOptionBuilder> extensionOption
)
#Parameters
Name | Type | Description |
---|---|---|
extension |
Action<Dashboard |
An action that provides an access to the registered extensions’ settings. |
#Returns
Type | Description |
---|---|
Dashboard |
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