add afterHeaderBuilder and beforeFooterBuilder in Dialog

This commit is contained in:
InsanusMokrassar 2022-02-17 17:28:42 +06:00
parent d4d0adf020
commit 366971bcf5
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@
* Reorder arguments in `DefaultComment` fun
* Add `Vertical` and `Horizontal` members in margins
* Add `afterHeaderBuilder` and `beforeFooterBuilder` properties in `Dialog` fun
## 0.0.35

View File

@ -31,6 +31,8 @@ fun Dialog(
dialogAttrsBuilder: AttrBuilderContext<HTMLDivElement>? = null,
headerAttrsBuilder: AttrBuilderContext<HTMLDivElement>? = null,
headerBuilder: ContentBuilder<HTMLDivElement>? = null,
afterHeaderBuilder: ContentBuilder<HTMLDivElement>? = null,
beforeFooterBuilder: ContentBuilder<HTMLDivElement>? = null,
footerAttrsBuilder: AttrBuilderContext<HTMLDivElement>? = null,
footerBuilder: ContentBuilder<HTMLDivElement>? = null,
bodyAttrsBuilder: AttrBuilderContext<HTMLDivElement>? = null,
@ -62,6 +64,7 @@ fun Dialog(
it()
}
}
afterHeaderBuilder ?.let { it() }
Div(
{
include(UIKitModal.Body)
@ -70,6 +73,7 @@ fun Dialog(
) {
bodyBuilder()
}
beforeFooterBuilder ?.let { it() }
footerBuilder ?.let {
Div(
{