Package io.kvision.utils

Functions

getContent
Link copied to clipboard
suspend fun File.getContent(): String
Suspending extension function to get file content.
getDataWithFileContent
Link copied to clipboard
suspend fun <K : Any> FormPanel<K>.getDataWithFileContent(): K
Returns current data model with file content read for all KFiles controls.
suspend fun <K : Any> Form<K>.getDataWithFileContent(): K
Returns current data model with file content read for all KFiles controls.