UNPKG

@stratio/egeo

Version:
72 lines (67 loc) 2.71 kB
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Stratio Egeo - Documentation</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" type="image/png" href="assets/images/favicon.png"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> </head> <body class="container-fluid"> <a href="/index.html">Go Back to index</a><br> <h1 id="alertscomponent">Alerts (Component)</h1> <p>Alerts are made to let the user know errors or information about he is trying to do.</p> <h2 id="inputs">Inputs</h2> <table class="table table-striped"> <thead> <tr> <th id="property">Property</th> <th id="type">Type</th> <th id="req">Req</th> <th id="description">Description</th> <th id="default">Default</th> </tr> </thead> <tbody> <tr> <td>showInConsole</td> <td>Boolean</td> <td>False</td> <td>Display logs in console</td> <td>false</td> </tr> <tr> <td>qaTag</td> <td>String</td> <td>False</td> <td>Component qa tag</td> <td></td> </tr> </tbody> </table> <h2 id="example">Example</h2> <pre><code class="html language-html">&lt;st-alerts [showInConsole]="true"&gt;&lt;/st-alerts&gt; </code></pre> <h2 id="models">Models</h2> <p><em>Alert</em> (StAlert)</p> <pre><code class="typescript language-typescript">export class StAlert { private _changeVisibilityInterval: number; private _lifeTimeout: number; private _readed: boolean = false; private _opacity: number = 0; private _opacityState: Subject &lt; number &gt; = new Subject &lt; number &gt; (); private _removeEvent: Subject &lt; StAlert &gt; = new Subject &lt; StAlert &gt; (); constructor( public id: number, public title: string, public message: string, public severity: STALERT_SEVERITY, public timeout: number, public extendedTimeout: number, public link: StAlertLink ) {} </code></pre> </body> </html>