34 $this->gs = $DIC->globalScreen();
35 $this->lng = $DIC->language();
47 $f = $this->
ui->factory();
49 $center =
$f->mainControls()->slate()->combined($this->lng->txt(
"noc"), $item->getSymbol())
52 foreach ($this->gs->collector()->notifications()->getNotifications() as $notification) {
53 $center = $center->withAdditionalEntry($notification->getRenderer($this->ui->factory())->getNotificationComponentForItem($notification));
75 function ($id) use ($toggle_signal,
$url) {
77 $(document).on('$toggle_signal', function(event, signalData) { 78 $.ajax({url: '$url'}); 92 return http_build_query([
93 ClientNotifications::MODE => ClientNotifications::MODE_OPENED,
94 ClientNotifications::NOTIFICATION_IDENTIFIERS => $this->gs->collector()->notifications()->getNotificationsIdentifiersAsArray(
true),
getToggleSignal()
Signal that toggles the slate when triggered.
withAdditionalOnLoadCode(\Closure $binder)
Add some onload-code to the component instead of replacing the existing one.
__construct(Container $dic, ilPlugin $plugin)
This describes the Combined Slate.