19declare(strict_types=1);
51 $this->lead_icon = $icon;
61 $clone->additional_content = $additional_content;
70 return $this->additional_content;
79 $clone->close_action =
$url;
88 return $this->close_action;
99 $this->checkArgListElements(
"Notification Item", $aggregate_notifications, $classes);
100 $clone = clone $this;
101 $clone->aggregate_notifications = $aggregate_notifications;
110 return $this->aggregate_notifications;
118 $clone = clone $this;
119 $clone->lead_icon = $icon;
128 return $this->lead_icon;
136 $clone = clone $this;
137 $clone->actions = $actions;
146 return $this->actions;
Content $additional_content
array $aggregate_notifications
getLeadIcon()
Get icon as lead.Note that Notifications only accept Icons as lead, this is different from the standa...
getAdditionalContent()
Get the additional content of the item or null.
__construct($title, Icon $icon)
getActions()
Get the actions of the item.
withLeadIcon(Icon $icon)
Set icon as lead.
withAggregateNotifications(array $aggregate_notifications)
Get an Notification Item like this, but with a set of Notifications, this Notification Item will aggr...
withActions(C\Dropdown\Standard $actions)
getAggregateNotifications()
Get the list of Notification Items, this Notification Item aggregates or an empty list....
withAdditionalContent(Content $additional_content)
Get a Notification Item like this but with additional content bellow the description....
getCloseAction()
Get the url attached to this Notification Item.
withCloseAction(string $url)
Get an Item like this with an url to consulted async, when to close button is pressed....
This describes commonalities between all types of Dropdowns.
Common interface to all items.
Interface to be extended by components that have the possibility to bind to Javascript.
This describes how an icon could be modified during construction of UI.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.