Skip to content

Commit

Permalink
feat: allow HTML in notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Apr 4, 2018
1 parent 56fc4e4 commit 5ea41f3
Show file tree
Hide file tree
Showing 18 changed files with 219 additions and 150 deletions.
33 changes: 18 additions & 15 deletions docs/classes/Notification.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@
<a href="../modules/NgxNotifierModule.html" >NgxNotifierModule</a>
<li class="chapter inner">
<div class="simple menu-toggler" data-toggle="collapse"
data-target="#xs-components-links-module-NgxNotifierModule-480dda25-e1f4-4473-8443-d83ca99ebdec"
data-target="#xs-components-links-module-NgxNotifierModule-8a3682ad-155d-41ab-8e57-89a83360175c"
>
<span class="fa fa-fw fa-cogs"></span>
<span>Components</span>
<span class="fa fa-angle-down"></span>
</div>
<ul class="links collapse"
id="xs-components-links-module-NgxNotifierModule-480dda25-e1f4-4473-8443-d83ca99ebdec"
id="xs-components-links-module-NgxNotifierModule-8a3682ad-155d-41ab-8e57-89a83360175c"
>
<li class="link">
<a href="../components/NgxNotifierComponent.html" >NgxNotifierComponent</a>
Expand All @@ -97,14 +97,14 @@
</li>
<li class="chapter inner">
<div class="simple menu-toggler" data-toggle="collapse"
data-target="#xs-injectables-links-module-NgxNotifierModule-480dda25-e1f4-4473-8443-d83ca99ebdec"
data-target="#xs-injectables-links-module-NgxNotifierModule-8a3682ad-155d-41ab-8e57-89a83360175c"
>
<span class="fa fa-fw fa-long-arrow-down"></span>
<span>Injectables</span>
<span class="fa fa-angle-down"></span>
</div>
<ul class="links collapse"
id="xs-injectables-links-module-NgxNotifierModule-480dda25-e1f4-4473-8443-d83ca99ebdec"
id="xs-injectables-links-module-NgxNotifierModule-8a3682ad-155d-41ab-8e57-89a83360175c"
>
<li class="link">
<a href="../injectables/NgxNotifierService.html" >NgxNotifierService</a>
Expand Down Expand Up @@ -267,14 +267,14 @@
<a href="../modules/NgxNotifierModule.html" >NgxNotifierModule</a>
<li class="chapter inner">
<div class="simple menu-toggler" data-toggle="collapse"
data-target="#components-links-module-NgxNotifierModule-480dda25-e1f4-4473-8443-d83ca99ebdec"
data-target="#components-links-module-NgxNotifierModule-8a3682ad-155d-41ab-8e57-89a83360175c"
>
<span class="fa fa-fw fa-cogs"></span>
<span>Components</span>
<span class="fa fa-angle-down"></span>
</div>
<ul class="links collapse"
id="components-links-module-NgxNotifierModule-480dda25-e1f4-4473-8443-d83ca99ebdec"
id="components-links-module-NgxNotifierModule-8a3682ad-155d-41ab-8e57-89a83360175c"
>
<li class="link">
<a href="../components/NgxNotifierComponent.html" >NgxNotifierComponent</a>
Expand All @@ -283,14 +283,14 @@
</li>
<li class="chapter inner">
<div class="simple menu-toggler" data-toggle="collapse"
data-target="#injectables-links-module-NgxNotifierModule-480dda25-e1f4-4473-8443-d83ca99ebdec"
data-target="#injectables-links-module-NgxNotifierModule-8a3682ad-155d-41ab-8e57-89a83360175c"
>
<span class="fa fa-fw fa-long-arrow-down"></span>
<span>Injectables</span>
<span class="fa fa-angle-down"></span>
</div>
<ul class="links collapse"
id="injectables-links-module-NgxNotifierModule-480dda25-e1f4-4473-8443-d83ca99ebdec"
id="injectables-links-module-NgxNotifierModule-8a3682ad-155d-41ab-8e57-89a83360175c"
>
<li class="link">
<a href="../injectables/NgxNotifierService.html" >NgxNotifierService</a>
Expand Down Expand Up @@ -476,7 +476,7 @@ <h3 id="constructor">Constructor</h3>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">src/app/ngx-notifier/others/notification-helper.ts:11</a></div>
<div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/app/ngx-notifier/others/notification-helper.ts:13</a></div>
</td>
</tr>

Expand Down Expand Up @@ -585,7 +585,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">src/app/ngx-notifier/others/notification-helper.ts:11</a></div>
<div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/app/ngx-notifier/others/notification-helper.ts:13</a></div>
</td>
</tr>

Expand Down Expand Up @@ -625,7 +625,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="5" class="link-to-prism">src/app/ngx-notifier/others/notification-helper.ts:5</a></div>
<div class="io-line">Defined in <a href="" data-line="7" class="link-to-prism">src/app/ngx-notifier/others/notification-helper.ts:7</a></div>
</td>
</tr>

Expand Down Expand Up @@ -665,7 +665,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="7" class="link-to-prism">src/app/ngx-notifier/others/notification-helper.ts:7</a></div>
<div class="io-line">Defined in <a href="" data-line="9" class="link-to-prism">src/app/ngx-notifier/others/notification-helper.ts:9</a></div>
</td>
</tr>

Expand Down Expand Up @@ -705,7 +705,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="9" class="link-to-prism">src/app/ngx-notifier/others/notification-helper.ts:9</a></div>
<div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">src/app/ngx-notifier/others/notification-helper.ts:11</a></div>
</td>
</tr>

Expand All @@ -730,7 +730,10 @@ <h3 id="inputs">


<div class="tab-pane fade tab-source-code" id="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">export class Notification {
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { SafeHtml } from &#x27;@angular/platform-browser&#x27;;

/** Notification Class */
export class Notification {

/** unique id for each notification */
id: string;
Expand Down Expand Up @@ -761,7 +764,7 @@ <h3 id="inputs">
/** unique id for each notification */
id: string;
/** message to be shown */
message: string;
message: string | SafeHtml;
/** bootstrap background colors */
style?: string;
/** timeout for notification */
Expand Down
Loading

0 comments on commit 5ea41f3

Please sign in to comment.