https://github.com/bradleywood/kt-bindings
A set of Kotlin JS bindings
https://github.com/bradleywood/kt-bindings
binding codemirror editor javascript kotlin wrapper
Last synced: 2 months ago
JSON representation
A set of Kotlin JS bindings
- Host: GitHub
- URL: https://github.com/bradleywood/kt-bindings
- Owner: BradleyWood
- License: mit
- Created: 2018-07-04T12:08:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-05T17:14:53.000Z (almost 7 years ago)
- Last Synced: 2025-03-02T12:52:00.024Z (3 months ago)
- Topics: binding, codemirror, editor, javascript, kotlin, wrapper
- Language: Kotlin
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kt-bindings
This project consists of a set of Kotlin bindings for popular JavaScript libraries
# Projects
- [kt-bindings-codemirror](kt-bindings-codemirror/src/main/kotlin/bindings/codemirror/) - a versatile text editor
- TODO
# Examples
### CodeMirror
```kotlin
import bindings.codemirror.CodeMirror
import kotlin.browser.documentfun main(args: Array) {
val codeMirror = CodeMirror(document.getElementById("code")!!, object {
val mode = "text/x-kotlin"
val lineNumbers = true
})
codeMirror.setSize("100%", "100%")
codeMirror.setValue("\nfun main(args: Array) { \n\tprintln(\"Hello, World\")\n}\n")
}```
![]()