onClick

open fun onClick(handler: CarouselItem.(MouseEvent) -> Unit): Int(source)

A convenient helper for easy setting onClick event handler.