ant-design-blazor/components/drawer/DrawerContainer.razor
Daniel Freyr Sigurdsson 99ff161de7
feat(module: drawer): add property HeaderStyle to Drawer component (#2809)
* feat(module:drawer): add property HeaderStyle to Drawer component

a property for modifying the style of the header in the drawer component

* feat(docs): add property HeaderStyle to Drawer api

Add HeaderStyle to DrawerOptions and update docs

* fix missing HeaderStyle for drawer servcie

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-10-20 13:55:35 +08:00

31 lines
1.1 KiB
C#

@namespace AntDesign
@inherits AntDomComponentBase
@foreach (DrawerRef drawerRef in _drawerRefs)
{
var drawerConfig = drawerRef.Options;
<Drawer @ref="@drawerRef.Drawer"
@key="@drawerConfig"
Content="@drawerConfig.Content"
Closable="@drawerConfig.Closable"
MaskClosable="@drawerConfig.MaskClosable"
Mask="@drawerConfig.Mask"
Keyboard="@drawerConfig.Keyboard"
Title="@drawerConfig.Title"
Placement="@drawerConfig.Placement"
MaskStyle="@drawerConfig.MaskStyle"
BodyStyle="@drawerConfig.BodyStyle"
HeaderStyle="@drawerConfig.HeaderStyle"
WrapClassName="@drawerConfig.WrapClassName"
Width="@drawerConfig.Width"
Height="@drawerConfig.Height"
ZIndex="@drawerConfig.ZIndex"
OffsetX="@drawerConfig.OffsetX"
OffsetY="@drawerConfig.OffsetY"
Visible="@drawerConfig.Visible"
OnOpen="@drawerRef.OnOpen"
OnClose="@drawerRef.CloseAsync">
@drawerConfig.ChildContent
</Drawer>
}