@stratio/egeo
Version:
90 lines (86 loc) • 3.14 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="formlistcomponent">Form list (Component)</h1>
<p>The form list component allows to create dynamically list of items.</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>schema</td>
<td>Any</td>
<td>False</td>
<td>JSON schema of items</td>
<td>''</td>
</tr>
<tr>
<td>buttonLabel</td>
<td>String</td>
<td>False</td>
<td>String displayed in the button to add more items</td>
<td>'Add one more item'</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>valueChange</td>
<td>Any[]</td>
<td>Notify any value change</td>
</tr>
<tr>
<td>add</td>
<td>Number</td>
<td>Notify the position of the added item and the modified model</td>
</tr>
<tr>
<td>remove</td>
<td>Number</td>
<td>Notify the position of the removed item and the modified model</td>
</tr>
<tr>
<td>blur</td>
<td>Any[]</td>
<td>Notify when user leaves a field</td>
</tr>
</tbody>
</table>
<h2 id="example">Example</h2>
<pre><code class="html language-html"><st-form-list [schema]="jsonSchema"
[ngModel]="model1"
name="list"
(blur)="onBlur($event)"
(add)="onAddItem($event)"
(remove)="onRemoveItem($event)">
</st-form-list>
</code></pre>
</body>
</html>