<div ng-controller="EventListCtrl as eventList">
  <c8y-global-context-widget-wrapper
    ng-style="{ 'z-index': 11 }"
    [display-mode]="'inline'"
    (global-context-change)="onGlobalContextChange($event)"
    [widget-controls]="widgetControls"
    [config]="child.config"
    [is-loading]="isLoading"
    [dashboard-child-for-legacy]="dashboardChild"
  ></c8y-global-context-widget-wrapper>
  <c8y-event-list
    ng-if="eventList.options && eventList.options.dateFrom && eventList.options.dateTo"
    filters="eventList.options"
    initial-realtime-state="child.config.realtime"
    realtime="child.config.realtime"
    hide-widget-actions="true"
    time-range-unit="true"
    on-loading-state-change="onLoadingStateChange(refreshLoading)"
  ></c8y-event-list>
</div>
