This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
Releases: kwebio/kweb-core
Releases · kwebio/kweb-core
Add support for KVar.property() - still requires documentation
0.4.14 upgrade ktor, bump version
Update to ktor 1.2.0
0.4.13 upgrade ktor, bump version
Minor ergonomic improvements
0.4.12 bump build
Really fix typo
0.4.11 fix typo in fomantic plugin
Fix issue with incorrect fomantic links in header
0.4.10 attempt to fix #54
Connect a KVar to an <input> value
You can now connect a KVar
to the value of an InputElement
and it will update automatically when the element is edited by the user in-browser:
Kweb(port = 1245) {
doc.body.new {
val i1 = input(placeholder = "Type here")
val i2 = input(placeholder = "Or here")
val commonString = KVar("")
i1.value = commonString
i2.value = commonString
// The contents of each text box can be edited and will stay in sync.
}
}
For more information see Binding a KVar to an InputElement value.
Efficient bidirectional kvar binding to InputElement value
You can now connect a KVar
to the value of an InputElement
and it will update automatically when the element is edited.
Kweb(port = 1245) {
doc.body.new {
val i1 = input(placeholder = "Type here")
val i2 = input(placeholder = "Or here")
val commonString = KVar("")
i1.setValue(commonString)
i2.setValue(commonString)
}
}
Correct typo in API
0.4.6 neglected to rename this, need to bump version
Switch from Semantic UI to it's Fomantic UI fork
Sadly it appears that Semantic UI is no-longer maintained, but fortunately there is a community fork called Fomantic UI which is a maintained drop-in replacement.
The only API change is that references to "Semantic" have been changed to "Fomantic".
For more information see the user manual.
Add notFound {} to route {} blocks
0.4.4 notFound {} functionality in route {}