umb-notifications.html - added option for setting the target attribute (#8224)
This commit is contained in:
@@ -52,6 +52,7 @@ angular.module('umbraco.services')
|
||||
* @param {String} item.message longer text for the notication, trimmed after 200 characters, which can then be exanded
|
||||
* @param {String} item.type Notification type, can be: "success","warning","error" or "info"
|
||||
* @param {String} item.url url to open when notification is clicked
|
||||
* @param {String} item.target the target used together with `url`. Empty if not specified.
|
||||
* @param {String} item.view path to custom view to load into the notification box
|
||||
* @param {Array} item.actions Collection of button actions to append (label, func, cssClass)
|
||||
* @param {Boolean} item.sticky if set to true, the notification will not auto-close
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
|
||||
<div ng-if="notification.headline">
|
||||
<a ng-if="notification.url" ng-href="{{notification.url}}" href="" target="_blank">
|
||||
<a ng-if="notification.url" ng-href="{{notification.url}}" href="" target="{{notification.target}}" rel="noreferrer">
|
||||
<strong ng-bind="notification.headline"></strong>
|
||||
<span ng-bind-html="notification.message"></span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user