Popover
A popover displays content, triggered by a button.
The popover.root
contains all the parts of a popover.
The popover.trigger
contains the button that toggles the popover.
The popover.content
is the component that pops out when the popover is open.
The popover.close
is the button that closes an open popover.
Basic Example
Examples in Context
Popover with dynamic title
Code like below will not work as expected and it is necessary to place the dynamic title (Index2State.language
) inside of an rx.text
component.
This code will work:
Events when the Popover opens or closes
The on_open_change
event is called when the open
state of the popover changes. It is used in conjunction with the open
prop, which is passed to the event handler.
Number of times popover opened or closed: 0
Popover open: false
API Reference
rx.popover.trigger
Wraps the control that will open the popover.
Props
No component specific props
Event Triggers
See the full list of default event triggersrx.popover.close
Wraps the control that will close the popover.
Props
No component specific props