onSelectionChanged

fun Tab.onSelectionChanged(context: CoroutineContext = Dispatchers.JavaFx, action: suspend CoroutineScope.(Event) -> Unit)

See also

Tab.setOnSelectionChanged