Is this how I am add an `id` to an element? It wor...
# kvision
m
Is this how I am add an
id
to an element? It works, I'm just wondering if there's another way when creating the simplePanel etc.
Copy code
simplePanel(className = "page-header") {
    setAttribute("id", "banner")
r
Copy code
simplePanel {
    id = "banner"    
}
👍 1
m
I tried to put id in the function parameters, not noticing it's available as a field. Many thanks again.