rjaros / kvision

Object oriented web framework for Kotlin/JS
https://kvision.io
MIT License
1.23k stars 65 forks source link

TomSelect not displaying options #465

Closed chavu closed 1 year ago

chavu commented 1 year ago

I upgrade kvision to ver 6.2.0. Now I'm trying to use teh TomSelect component but it not dipslaying the options for both single and multiple. Also note that your documentation still refers to Select under under TomSelect section.

tomSelect(
      label = "Simple select",
      options = listOf("first" to "First option", "second" to "Second option", "third" to "Third option"),
  )

  tomSelect(
      label = "Multiple select",
      options = listOf("first" to "First option", "second" to "Second option", "third" to "Third option"),
      multiple = true,
      tsOptions = TomSelectOptions(maxItems = 2, checkboxOptions = true)
  )

image

rjaros commented 1 year ago

I think you didn't add TomSelectModule initializer to your startApplication() function.

rjaros commented 1 year ago

The documentation is fixed now. Thanks!

chavu commented 1 year ago

Yes that was the issue. I added the initialiser and the issue is resolved. Thank you so much for the usual prompt responses.