mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2025-09-16 13:59:17 +00:00
add defaults in content builders of Grid and GridColumn
This commit is contained in:
@@ -10,7 +10,7 @@ import org.w3c.dom.HTMLDivElement
|
|||||||
fun GridColumn(
|
fun GridColumn(
|
||||||
vararg modifiers: UIKitModifier,
|
vararg modifiers: UIKitModifier,
|
||||||
attributesCustomizer: AttrBuilderContext<HTMLDivElement> = {},
|
attributesCustomizer: AttrBuilderContext<HTMLDivElement> = {},
|
||||||
builder: @Composable ElementScope<HTMLDivElement>.() -> Unit
|
builder: @Composable ElementScope<HTMLDivElement>.() -> Unit = {}
|
||||||
) {
|
) {
|
||||||
Div(
|
Div(
|
||||||
{
|
{
|
||||||
@@ -30,7 +30,7 @@ fun Grid(
|
|||||||
marginClass: String? = null,
|
marginClass: String? = null,
|
||||||
firstColumnClass: String? = null,
|
firstColumnClass: String? = null,
|
||||||
attributesCustomizer: AttrBuilderContext<HTMLDivElement> = {},
|
attributesCustomizer: AttrBuilderContext<HTMLDivElement> = {},
|
||||||
builder: @Composable ElementScope<HTMLDivElement>.() -> Unit
|
builder: @Composable ElementScope<HTMLDivElement>.() -> Unit = {}
|
||||||
) {
|
) {
|
||||||
val attrs = listOfNotNull(
|
val attrs = listOfNotNull(
|
||||||
if (masonry) "masonry" to "true" else null,
|
if (masonry) "masonry" to "true" else null,
|
||||||
|
Reference in New Issue
Block a user