<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">

    <List
        id="sapUshellNotificationsListType"
        class="sapUshellNotificationsList sapContrastPlus sapContrast sapUshellPopoverList"
        mode="SingleSelect"
        noDataText="{i18n>noNotificationsMsg}"
        items="{/notificationsByTypeDescending}">
        <NotificationListGroup
            title="{GroupHeaderText}"
            collapsed="{Collapsed}"
            showEmptyGroup="true"
            enableCollapseButtonWhenEmpty="true"
            autoPriority="false"
            datetime="{path: 'CreatedAt', formatter: 'sap.ushell.utils.formatDate'}"
            priority="{ path: 'Priority', formatter: '.priorityFormatter'}"
            busy="{= ${Busy} ? ${Busy} : false}"
            buttons="{
                path:'Actions',
                templateShareable: 'true',
                sorter: {
                    path: 'Nature',
                    descending: 'true'
                }
            }"
            items="{
                path: 'aNotifications',
                templateShareable: 'true'
            }"
            close="onNotificationGroupItemClose"
            onCollapse="onNotificationGroupItemCollapse">
            <core:Fragment fragmentName="sap.ushell.components.shell.Notifications.NotificationsListItem" type="XML"/>
            <buttons>
                <Button
                    press="onNotificationGroupItemButtonPress"
                    text="{GroupActionText}" />
            </buttons>
        </NotificationListGroup>
    </List>
</core:FragmentDefinition>