kor TürkçeGitHub

Dialog

Opens a modal dialog and keeps focus inside until dismissal.

kor/ui/DialogSource

When to use

  • Ask the user to finish a short task before returning to the page.

Examples

Open and dismiss

Loading the example

<k:Button text="Show details" press=".onOpen">
	<k:dependents>
		<k:Dialog id="details" title="Delivery instructions">
			<k:Text text="Use the east entrance after 16:00."/>
		</k:Dialog>
	</k:dependents>
</k:Button>

A footer action

Loading the example

<k:Button text="Review the shipment" press=".onOpen">
	<k:dependents>
		<k:Dialog id="details" title="Shipment SH-104" subtitle="North warehouse">
			<k:content><k:Text text="Three pallets are ready for collection."/></k:content>
			<k:footer><k:Button kind="primary" text="Acknowledge" press=".onDone"/></k:footer>
		</k:Dialog>
	</k:dependents>
</k:Button>

API

Properties

NameTypeDefaultDescription
openbooleanfalseWhether the dialog is open
titlestringTitle
subtitlestringSubtitle
widthint560Width in pixels
dismissablebooleantrueWhether Esc and the close button can dismiss the dialog
dangerbooleanfalseWhether the dialog concerns a hard-to-reverse action

Aggregations

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

Events

NameTypeDescription
closeThe user dismissed the dialog. Call preventDefault to keep it open

Methods

NameDescription
setOpen(open: boolean): thisOpens or closes the modal dialog

Related

ConfirmSheet