Skip to content

GridPanel and templateAreas formatΒ #580

@Northburns

Description

@Northburns

Hi! Question on the use of GridPanel and its templateAreas, I notice I have to define it like this:

gridPanel(
    templateColumns = "32px auto",
    templateRows = "32px 128px",
    templateAreas = listOf(
        "\"img header\"",
        "\"img content\"",
    ),
)

Since it's a list, I assumed each string would correspond to one "row" in the grid-template-areas CSS property. Instead I had to add the quotation marks to the strings. Is this the intended format? Feels just a bit off.

PS. Enjoying using KVision in my hobby project! Cheers 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions