kor TürkçeGitHub

Popover

Anchors a small panel to an existing control.

kor/ui/PopoverSource

When to use

  • Keep short detail or quick actions next to their trigger.

Examples

Anchored detail

Loading the example

<k:Button text="Show dispatch time" press=".onOpen">
	<k:dependents>
		<k:Popover id="details" title="Dispatch">
			<k:Text text="Pickup begins at noon."/>
		</k:Popover>
	</k:dependents>
</k:Button>

Quick action

Loading the example

<k:Button text="Show dispatch options" press=".onOpen">
	<k:dependents>
		<k:Popover id="details" title="Dispatch">
			<k:content><k:Text text="A driver needs to check in."/></k:content>
			<k:footer><k:Button text="Notify driver" press=".onNotify"/></k:footer>
		</k:Popover>
	</k:dependents>
</k:Button>

API

Properties

NameTypeDefaultDescription
titlestringTitle
widthint320Width in pixels

Aggregations

NameTypeDescription
contentsap.ui.core.Control[]Popover body
footersap.ui.core.Control[]Footer actions

Events

NameTypeDescription
closeThe popover closed

Methods

NameDescription
openBy(opener: Control | HTMLElement): voidOpens the popover beside the supplied control or element
isOpen(): booleanReturns whether the popover is open
close(): voidCloses the popover

Related

TooltipSheet