Hello! I seem to not be able to find the answer t...
# kvision
d
Hello! I seem to not be able to find the answer to my question myself so i’ll try here: I would like to use a Popover but with different show/hide timings, is this something that is doable in Kvision? We have the delay but this applies to both show/hide:
Copy code
button("A button") {
    enablePopover(PopoverOptions(
        title = "This is a <b>rich</b> popover title",
        content = "This is a <b>rich</b> popover content",
        rich = true,
        delay = 1000,   <-------
        placement = Placement.BOTTOM,
        triggers = listOf(Trigger.CLICK)
    ))
}
Or can this be achieved with something like:
Copy code
onEvent {
  mouseover = {
    self.showPopover()
    <some sort of delay here>
    self.hidePopover()
  }
}
r
You have
delay
and
hideDelay
in
PopoverOptions
.
🙌 1
if
hideDelay
is not set,
delay
timeout is used
d
Thank you Robert!