Jörg Rade
01/31/2022, 4:38 PMfun filterByState(state: EventState) {
console.log("[ELT.filterByState]")
console.log(tabulator)
tabulator.jsTabulator?.setFilter("State", "=", state.name)
}
tabulator looks as expected and it's element jsTabulator seems to be set, but when I try to access or log it, it is null.
I'm puzzled (and still at KVision 5.5.1).Robert Jaros
01/31/2022, 4:41 PMfilterByState
too early, before `jsTabulator`is initialized.tabulator.jsTabulator
?Jörg Rade
01/31/2022, 4:42 PMRobert Jaros
01/31/2022, 4:43 PMtabulator
it will be "live" object - when you look at its properites in devtools you see the current state (not the state from the moment of logging)Jörg Rade
01/31/2022, 4:44 PMRobert Jaros
01/31/2022, 4:44 PMJörg Rade
01/31/2022, 4:47 PMRobert Jaros
01/31/2022, 4:47 PMJörg Rade
02/01/2022, 5:28 PMTabulatorOptions
there is initialFilter: List<Tabulator.Filter>?
List<Tabulator.Filter>
?
Robert Jaros
02/01/2022, 5:41 PMinitialFilter = listOf(obj<Tabulator.Filter>{
field = "field1"
type = "="
value = "something"
})
Jörg Rade
02/01/2022, 8:06 PM