|
@using Syncfusion.Blazor.Layouts
@using Syncfusion.Blazor.SplitButtons
@using Syncfusion.Blazor.Buttons
@using Syncfusion.Blazor.Calendars
<div style="width:100%;height:100%">
<SfDashboardLayout @ref="dashboard" CellSpacing="@(new double[]{10 ,10 })" Columns="5" >
<DashboardLayoutEvents Created="created"></DashboardLayoutEvents>
<DashboardLayoutPanels>
<DashboardLayoutPanel Row="0" Col="0" SizeX="2" SizeY="2">
<ContentTemplate><div>0</div></ContentTemplate>
</DashboardLayoutPanel>
<DashboardLayoutPanel Row="0" SizeX=2 SizeY=2 Col=2>
<ContentTemplate><div>1</div></ContentTemplate>
</DashboardLayoutPanel>
<DashboardLayoutPanel Row="2" SizeY=2 SizeX="2" Col=0>
<ContentTemplate><div>2</div></ContentTemplate>
</DashboardLayoutPanel>
</DashboardLayoutPanels>
</SfDashboardLayout>
</div>
@code {
SfDashboardLayout dashboard;
public void created()
{
this.dashboard.AddPanel(new PanelModel
{
SizeX = 2,
SizeY = 1,
Row = 0,
Col = 0,
Content =@<div style="height:100%; width:100%;">
<SfButton Content="Button component"></SfButton>
</div>,
});
}
} |