<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:core="sap.ui.core"
          controllerName="sap.ovp.cards.rta.SelectKPI">
    <Toolbar>
        <Title text="{ovpResourceModel>OVP_KEYUSER_KPI_TABLE}({/NoOfKPIItem})" class="sapUiSmallMarginBegin"/>
        <ToolbarSpacer/>
        <SearchField placeholder="{ovpResourceModel>OVP_KEYUSER_PLACEHOLDER_FOR_SEARCH}" width="40%"
                     search="onSearch"
                     class="{= ${tableRows>/densityStyle} === 'compact' ? 'sapUiSizeCompact' : ''}"/>
    </Toolbar>
    <ScrollContainer id="KPIItemScrollContainer"
                     class="sapOvpScrollContainer"
                     width="100%"
                     horizontal="false"
                     vertical="true"
                     focusable="true">
        <Table id="KPITable" sticky="ColumnHeaders" inset="false" fixedLayout="false"
               items="{/KPIItem}">
            <columns>
                <Column>
                    <Label text="{ovpResourceModel>OVP_KEYUSER_KPI_GROUP_TITLE}"/>
                </Column>
                <Column>
                    <Label text="{ovpResourceModel>OVP_KEYUSER_KPI_TITLE}"/>
                </Column>
            </columns>
            <items>
                <ColumnListItem type="Active" press="onItemPress">
                    <cells>
                        <Text text="{GroupTitle}"/>
                        <Text text="{KPITitle}"/>
                    </cells>
                </ColumnListItem>
            </items>
        </Table>
    </ScrollContainer>
</mvc:View>