foundation-apps icon indicating copy to clipboard operation
foundation-apps copied to clipboard

NotificationFactory, add optional link(s)

Open laurent-le-graverend opened this issue 9 years ago • 2 comments

Would be great to be able to add HTML formatted content, or at least an optional link when clicking on the notification content.

HTML formatted would be probably better because offers the possibility to have multiple links and support ui-sref attributes.

Is it something that can be considered?

laurent-le-graverend avatar Sep 17 '15 08:09 laurent-le-graverend

:+1:

vincentpalita avatar Oct 25 '15 15:10 vincentpalita

@laurent-le-graverend : you can move the title attribute in the notification.html inside the directive ng-bind-html.

<div zf-swipe-close="swipe" class="notification {{ color }}">
  <a href="#"
    class="close-button"
    ng-click="hide(); $event.preventDefault(); $event.stopPropagation()">&times;</a>
  <div class="notification-icon" ng-if="image">
    <img ng-src="{{ image }}"/>
  </div>
  <div class="notification-content">
    <h1 ng-bind-html="title"></h1>
    <p ng-transclude></p>
  </div>
</div>

vincentpalita avatar Oct 25 '15 15:10 vincentpalita