You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/docs/templates/notification.html
+83-16Lines changed: 83 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
<h2>Notification</h2>
3
3
<h3class="subheader">An alert that pins to the corner of the screen when triggered by JavaScript.</h3>
4
4
5
-
<p>A custom action can be assigned to a notification as well. By default, all notifications can be swiped to close them. You can also set an `autoclose` attribute equal to a number (measured in milliseconds) to have the notification disappear after the specified amount of time. Please note that due to dynamic DOM insertion and animations, we recommend an autoclose value of at least 1000ms.</p>
5
+
<p>A custom action can be assigned to a notification as well. By default, all notifications can be swiped to close them. You can also set an <code>autoclose</code> attribute equal to a number (measured in milliseconds) to have the notification disappear after the specified amount of time. Please note that due to dynamic DOM insertion and animations, we recommend an autoclose value of at least 1000ms.</p>
6
6
7
7
<divclass="grid-block">
8
8
<divclass="small-12 grid-content">
@@ -15,7 +15,7 @@ <h3 class="subheader">An alert that pins to the corner of the screen when trigge
<ba-notification-staticid="my-notify" title="My static notification" image="http://placehold.it/40x40" content="This notification is static, it works similarly to a programmatic with some subtle differences.">
<p>Notifications support using HTML inside the title and content. Both static and dynamic notifications allow passing HTML via the <code>title</code> attribute, however, they differ in how they allow passing HTML content.</p>
105
+
106
+
<h4>Static Notifications</h4>
107
+
<p>Static notifications use <code>ng-transclude</code> to inject the content. Therefore you can simply pass the HTML as the body of the notification.</p>
<li>it works similarly to a <b>programmatic</b> notification</li>
133
+
<li>it has some <i>subtle differences</i></li>
134
+
</ul>
135
+
</ba-notification-static>
136
+
</div>
137
+
</div>
138
+
139
+
<h4>Dynamic Notifications</h4>
140
+
<p>Basic dynamic notifications use the <code>content</code> attribute to allow passing plain-text content. If you wish to pass HTML, you must use the <code>html</code> attribute.</p>
0 commit comments