zurb / foundation-apps

The first front-end framework created for developing fully responsive web apps.
http://foundation.zurb.com/apps
MIT License
1.58k stars 216 forks source link

NotificationFactory, add optional link(s) #692

Open laurent-le-graverend opened 9 years ago

laurent-le-graverend commented 9 years ago

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?

vincentpalita commented 8 years ago

:+1:

vincentpalita commented 8 years ago

@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>