kor TürkçeGitHub

Shell

Frames an application with navigation, a title bar and a content area.

kor/ui/ShellSource

When to use

  • Give related screens shared navigation and global actions.

Examples

Navigation rail

Loading the example

<k:Shell brand="Kor" title="Warehouse" selectedKey="inventory">
	<k:items><k:NavItem key="inventory" text="Inventory" icon="boxes"/></k:items>
	<k:content><k:Text text="Inventory overview"/></k:content>
</k:Shell>

Switch work areas

Loading the example

<k:Shell brand="Kor" title="{/title}" selectedKey="orders" navigate=".onNavigate">
	<k:items>
		<k:NavItem key="orders" text="Orders" icon="list" count="4"/>
		<k:NavItem key="receipts" text="Receipts" icon="truck"/>
	</k:items>
	<k:content><k:Text text="{/detail}"/></k:content>
</k:Shell>

API

Properties

NameTypeDefaultDescription
brandstringProduct name
titlestringTop bar title
selectedKeystringKey of the selected navigation entry
collapsedbooleanfalseWhether navigation is reduced to icons

Aggregations

NameTypeDescription
itemsNavItem[]Navigation entries
actionssap.ui.core.Control[]Top bar actions
footersap.ui.core.Control[]Content below the navigation entries
contentsap.ui.core.Control[]Main content

Events

NameTypeDescription
navigatekey: stringA navigation entry was selected

A navigation entry in the application shell.

Properties

NameTypeDefaultDescription
keystringNavigation key
textstringMenu text
iconstringIcon name
groupstringSection heading
countstringCount shown at the trailing edge

Related

CommandPaletteTabs