Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanek Voloshchuk committed Sep 16, 2024
1 parent d14fc77 commit fb0b53e
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,76 +2,74 @@
<h2>Properties</h2>
<table>
<thead>
<tr>
<th>Property</th>
<th>Type</th>
<th>Default Value</th>
<th>Description</th>
</tr>
<tr>
<th>Property</th>
<th>Type</th>
<th>Default Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>id</code></td>
<td><code>string</code></td>
<td><code>''</code></td>
<td>
HTML id of the element.
</td>
</tr>
<tr>
<td><code>multiple</code></td>
<td><code>boolean</code></td>
<td><code></code></td>
<td>if <code>false</code> only 1 document can be added, otherwise you can add as much documents as you want.</td>
</tr>
<tr>
<td><code>accept</code></td>
<td><code>string[]</code></td>
<td><code>'[]'</code></td>
<td>is a string array which contains all valid document types.</td>
</tr>
<tr>
<td><code>text</code></td>
<td><code>string</code></td>
<td><code>'Upload'</code></td>
<td>Text in the Upload Field.</td>
</tr>
<tr>
<td><code>showFileList</code></td>
<td><code>boolean</code></td>
<td><code>false</code></td>
<td>Shows the list of added files.</td>
</tr>
<tr>
<td><code>removable</code></td>
<td><code>boolean</code></td>
<td><code>true</code></td>
<td>Uploaded file can be deleted using icon in chip.</td>
</tr>
<tr>
<td><code>id</code></td>
<td><code>string</code></td>
<td><code>''</code></td>
<td>HTML id of the element.</td>
</tr>
<tr>
<td><code>multiple</code></td>
<td><code>boolean</code></td>
<td><code></code></td>
<td>if <code>false</code> only 1 document can be added, otherwise you can add as much documents as you want.</td>
</tr>
<tr>
<td><code>accept</code></td>
<td><code>string[]</code></td>
<td><code>'[]'</code></td>
<td>is a string array which contains all valid document types.</td>
</tr>
<tr>
<td><code>text</code></td>
<td><code>string</code></td>
<td><code>'Upload'</code></td>
<td>Text in the Upload Field.</td>
</tr>
<tr>
<td><code>showFileList</code></td>
<td><code>boolean</code></td>
<td><code>false</code></td>
<td>Shows the list of added files.</td>
</tr>
<tr>
<td><code>removable</code></td>
<td><code>boolean</code></td>
<td><code>true</code></td>
<td>Uploaded file can be deleted using icon in chip.</td>
</tr>
</tbody>
</table>

<h2>Events</h2>
<table>
<thead>
<tr>
<th>Event</th>
<th>Description</th>
</tr>
<tr>
<th>Event</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>fileEmitter</code></td>
<td>Emits when file is uploaded/removed. Contains file list</td>
</tr>
<tr>
<td><code>errorEmitter</code></td>
<td>(ErrorType) ONLY_SINGLE_FILE: if only 1 File is allowed and user tries to add more than 1 File in 1 dialog.</td>
</tr>
<tr>
<td><code>errorEmitter</code></td>
<td>(ErrorType) FILETYPE_NOT_SUPPORTED: if user tries to add unsupported file type</td>
</tr>
<tr>
<td><code>fileEmitter</code></td>
<td>Emits when file is uploaded/removed. Contains file list</td>
</tr>
<tr>
<td><code>errorEmitter</code></td>
<td>(ErrorType) ONLY_SINGLE_FILE: if only 1 File is allowed and user tries to add more than 1 File in 1 dialog.</td>
</tr>
<tr>
<td><code>errorEmitter</code></td>
<td>(ErrorType) FILETYPE_NOT_SUPPORTED: if user tries to add unsupported file type</td>
</tr>
</tbody>
</table>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { Component } from '@angular/core';
standalone: true,
imports: [],
templateUrl: './upload-demo-api-spec.component.html',
styleUrl: './upload-demo-api-spec.component.scss'
styleUrl: './upload-demo-api-spec.component.scss',
})
export class UploadDemoApiSpecComponent {

}
export class UploadDemoApiSpecComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ <h2>Behavior</h2>
<li>Clickable with dialog to select files</li>
<li>Drag And Drop Functionality</li>
<li>Replace file with a new one in single upload mode</li>
<li>Show the </li>
</ul>

<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Example } from '../../components/example-viewer/example.class';
import { UploadFileComponent } from '../../example-components/upload-file/upload-file.component';
import { ExampleViewerComponent } from '../../components/example-viewer/example-viewer.component';
import { TextCodeComponent } from '../../components/text-code/text-code.component';
import {UploadDemoApiSpecComponent} from './upload-demo-api-spec/upload-demo-api-spec.component';
import { UploadDemoApiSpecComponent } from './upload-demo-api-spec/upload-demo-api-spec.component';

@Component({
selector: 'app-upload-demo',
Expand Down

0 comments on commit fb0b53e

Please sign in to comment.