@openui5/sap.ui.demokit
Version:
OpenUI5 UI Library sap.ui.demokit
72 lines (70 loc) • 1.84 kB
text/xml
<mvc:View
controllerName="sap.ui.demokit.explored.view.master"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
<Page
id="page" >
<landmarkInfo>
<PageAccessibleLandmarkInfo rootRole="Region" rootLabel="Master" headerRole="Region" headerLabel="Header" subHeaderRole="Search" subHeaderLabel="Object Search" contentRole="Navigation" contentLabel="Items"></PageAccessibleLandmarkInfo>
</landmarkInfo>
<customHeader>
<Toolbar>
<Button icon="sap-icon://drop-down-list" id="viewSettingsButton" press="onOpenViewSettings" />
<ToolbarSpacer/>
<Title text="Entities ({entity>/entityCount})" />
<ToolbarSpacer/>
<Button icon="sap-icon://action-settings" tooltip="{i18n>settings}" press="onOpenAppSettings" />
</Toolbar>
</customHeader>
<subHeader>
<Bar
id="searchBar">
<contentMiddle>
<SearchField
id="searchField"
placeholder="Search"
liveChange="onSearch"
width="100%" >
</SearchField>
</contentMiddle>
</Bar>
</subHeader>
<content>
<List
id="list"
class="myList"
noDataText="{i18n>masterListNoData}"
mode="{device>/listMode}"
selectionChange="onNavToEntity"
items="{
path: 'entity>/entities',
groupHeaderFactory: '.getGroupHeader',
sorter: [{
path: 'category',
descending: false,
group: true
},{
path: 'name',
descending: false
}]
}" >
<infoToolbar>
<Toolbar
id="vsFilterBar"
active="true"
visible="false"
press="onOpenViewSettings">
<Label id="vsFilterLabel" />
</Toolbar>
</infoToolbar>
<items>
<StandardListItem
title="{entity>name}"
counter="{entity>sampleCount}"
type="{device>/listItemType}"
press="onNavToEntity" />
</items>
</List>
</content>
</Page>
</mvc:View>