Open hasanOryx opened 7 years ago
Aza-Kotlin-CSS actually does not support Kotlin JS! You are probably looking for my fork here: https://github.com/null-dev/Aza-Kotlin-CSS-JS which supports Kotlin JS. Replace compile "azadev.kotlin:aza-kotlin-css:$aza_kotlin_css"
with compile 'xyz.nulldev:aza-kotlin-css-js:$aza_kotlin_css'
and change ext.aza_kotlin_css = '1.0'
to ext.aza_kotlin_css = '1.01'
.
Even if you use my fork however, your syntax is wrong. After creating a stylesheet with Stylesheet {}
, you must add it to the element with style()
. A simple example with a button element is below:
document.create.button {
style(Stylesheet {
backgroundColor = RED
}.render())
}
@null-dev I got an error as in the attached:
Instead of style(Stylesheet {
, use style(content = Stylesheet {
I've my app working fine, once I imported
azadev.kotlin
It gave me error build My full code is a s below:Main.kt:
My gradle.build is: