@stratio/egeo
Version:
92 lines (88 loc) • 3.11 kB
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="filebuttoncomponent">File button (Component)</h1>
<p>The file button allows to upload a file with a specified extension.</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>text</td>
<td>String</td>
<td>False</td>
<td>Displayed text</td>
<td>''</td>
</tr>
<tr>
<td>buttonClass</td>
<td>String</td>
<td>False</td>
<td>Class for button</td>
<td>''</td>
</tr>
<tr>
<td>accepted</td>
<td>String</td>
<td>False</td>
<td>The allowed extensions</td>
<td>''</td>
</tr>
<tr>
<td>id</td>
<td>String</td>
<td>False</td>
<td>Identifier for input</td>
<td>''</td>
</tr>
</tbody>
</table>
<h2 id="outputs">Outputs</h2>
<table class="table table-striped">
<thead>
<tr>
<th id="property">Property</th>
<th id="type">Type</th>
<th id="description">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>selected</td>
<td>File</td>
<td>Event emitted when a file is selected</td>
</tr>
<tr>
<td>error</td>
<td>Error</td>
<td>Event emitted when an invalid file is selected</td>
</tr>
</tbody>
</table>
<h2 id="example">Example</h2>
<pre><code class="html language-html"><st-file-button text="IMPORT"
accepted='json'
(selected)="onUploadValidFile($event)"
(error)="onUploadInvalidFile()">
</st-file-button>
</code></pre>
</body>
</html>