kor TürkçeGitHub

Skeleton

Reserves space for content while it loads.

kor/ui/SkeletonSource

When to use

  • Show where a region will appear while its data is being fetched.

Examples

Loading text rows

Loading the example

<k:Skeleton kind="text" count="3" loading="true"/>

Load a shipment summary

The reload simulates a short request. The summary reappears when loading ends.

Loading the example

<k:Stack gap="10">
	<k:Button text="Reload summary" enabled="{= !${/loading} }" press=".onReload"/>
	<k:Skeleton kind="rows" count="2" loading="{/loading}">
		<k:Text kind="heading" text="Shipment SH-104"/>
		<k:Status state="success" text="Ready to ship"/>
	</k:Skeleton>
</k:Stack>

API

Properties

NameTypeDefaultDescription
loadingbooleantrueWhether loading placeholders are shown
kindstringtexttext, rows, cards or chart
countint3Number of placeholders

Aggregations

NameTypeDescription
contentsap.ui.core.Control[]Content shown after loading

Related

EmptyMessage