jschneider
02/12/2021, 3:07 PMRobert Jaros
02/12/2021, 3:13 PMRobert Jaros
02/12/2021, 3:18 PMjschneider
02/13/2021, 3:08 PMRobert Jaros
02/14/2021, 3:00 AMTomas Kormanak
02/15/2021, 11:12 AMjschneider
02/15/2021, 12:04 PMjschneider
02/15/2021, 2:33 PM<button class="btn btn-link">
jschneider
02/15/2021, 4:53 PMjschneider
02/15/2021, 8:22 PMjschneider
02/16/2021, 2:39 PMcorneil
02/16/2021, 10:42 PMTomas Kormanak
02/17/2021, 12:08 PMBig Chungus
02/19/2021, 6:44 PMe: java.lang.IllegalStateException: No descriptor found for library /home/mpetuska/.gradle/caches/modules-2/files-2.1/io.kvision/kvision-bootstrap-css/4.0.0/966cd74de61f5102ac384f4a6a435665cbe34ba5/kvision-bootstrap-css-4.0.0
Big Chungus
02/19/2021, 6:51 PM@DslMarker
annotation class KVisionDsl
Big Chungus
02/19/2021, 7:46 PMBig Chungus
02/19/2021, 8:56 PMpre
tag in kvision.Big Chungus
02/19/2021, 10:34 PMJamy
02/20/2021, 7:26 AMWishnuprathikantam
02/22/2021, 10:28 AM@Serializable
data class SuccessResponse<T>(
val status: Int,
val data: T,
val message: String
) : ApiResponse()
@Serializable
data class ErrorResponse(
val status: Int,
val errorCode: Int,
val message: String
) : ApiResponse()
@Serializable
sealed class ApiResponse
remoteCall(
ApiRoutes.LOGIN,
Json.encodeToString(AdminRequest.serializer(), body),
ApiResponse.serializer(),
<http://HttpMethod.POST|HttpMethod.POST>
)
when (this) {
is SuccessResponse<*> -> {
val data = this.unsafeCast<SuccessResponse<T>>()
success(data)
}
is ErrorResponse -> {
failure(this)
}
else -> {
console.log(this)
}
}
Need help with deserializing sealed classes, without else block throws NoWhenBranchMatchedExceptionBig Chungus
02/22/2021, 10:47 PMJamy
02/23/2021, 3:12 AMUpload
form control but when I want to get my file from my form, It always return null on upload
field even if I used your sample on your doc: Client side file handling
val pictureForm = formPanel<Request> {
add(Request::upload,
Upload(multiple = false, label = "Upload files (images only)").apply {
showUpload = false
showCancel = false
explorerTheme = true
dropZoneEnabled = true
allowedFileTypes = setOf("image")
})
}
button("Submit").onClick {
GlobalScope.launch {
val fdata = pictureForm.getDataWithFileContent()
val firstImage = fdata.upload?.firstOrNull()?.content
if (firstImage != null) {
Alert.show("Image", "<img src=\"$firstImage\">", rich = true)
}
console.log(firstImage)
}
}
Jamy
02/24/2021, 2:51 AMRobert Jaros
02/28/2021, 5:24 PM<tag disabled="disabled"/>
which is equivalentTomas Kormanak
03/02/2021, 5:06 PMdata class Voice(var _id: Id? = null, var name: String? = null)
val options = TabulatorOptions(
layout = Layout.FITCOLUMNS,
columns = listOf(ColumnDefinition(tr("Name"), Voice::name.name))
),
val entities: ObservableList<E> = observableListOf()
tabulator = Tabulator(entities, options = options)
It used to work well, but after upgrade to 3.17.0 we can see only empty rows.
I think it's because of this commit:
https://github.com/rjaros/kvision/commit/5406e9e7b4cf8b516e9070179bb702038e2af46a
since then data are converted to plain object in Tabulator::replaceData
Also getData()
now returns plain object instead of original object:
tabulatorRowClick = { e ->
val entity = (e.detail as JsTabulator.RowComponent).getData() as E
// .... do something with entity
}
Am I missing something or is there a new way how to use Tabulator we should use?Artglorin
03/02/2021, 7:13 PMkvision-module-navigo-ng
. Should be `kvision-routing-navigo-ng`How I can contribute a fix?Jamy
03/04/2021, 2:27 AMAuthorization
header to ajax request from tabulator but my configuration is ignored. What is the good syntax ?
tabulator<Any>(
TabulatorOptions(
ajaxURL = "${Api.API_URL}/product",
ajaxConfig = "POST",
...
)
)
Request is a POST
tabulator<Any>(
TabulatorOptions(
ajaxURL = "${Api.API_URL}/product",
ajaxConfig = object : Tabulator.AjaxConfig {
override var method: String = "POST"
override var headers: dynamic = mapOf("Authorization" to token)
},
...
)
)
Request is a GET instead of POST (and Authorization header isn't added)Tom
03/07/2021, 7:39 PMval tab_options = TabulatorOptions(
layout = Layout.FITCOLUMNS,
columns = listOf(
....
)
)
tabulator(Model.cov_List, options = tab_options)
Tomas Kormanak
03/08/2021, 9:12 AM./gradlew publishToMavenLocal -PSNAPSHOT=true
results:
> Task :compileKotlinJsIr
e: java.lang.IllegalStateException: Unsupported operation
at org.jetbrains.kotlin.backend.common.serialization.IrModuleDeserializer.referenceSimpleFunctionByLocalSignature(IrModuleDeserializer.kt:37)
Any idea?
It works in 4.1.0Tomas Kormanak
03/10/2021, 6:54 PMio.kvision.form.Form#setData
.Tomas Kormanak
03/10/2021, 6:54 PMio.kvision.form.Form#setData
.Robert Jaros
03/10/2021, 6:57 PMTomas Kormanak
03/10/2021, 6:57 PMRobert Jaros
03/10/2021, 6:58 PMTomas Kormanak
03/10/2021, 7:01 PMRobert Jaros
03/10/2021, 7:04 PMForm
component since 3.16. I've dropped encodeToDynamic
and fixed issues with DataTime and Upload fields on IR.