Skip to content

Commit

Permalink
Add public method to FileUpload.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Sep 9, 2019
1 parent a00abff commit f8c1c40
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/fileupload/FileUpload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ interface FileUploadProps {
uploadHandler?(e: {files: any}): void;
}

export class FileUpload extends React.Component<FileUploadProps,any> {}
export class FileUpload extends React.Component<FileUploadProps,any> {
public upload():void;
public clear():void;
}
25 changes: 25 additions & 0 deletions src/showcase/fileupload/FileUploadDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,31 @@ myUploader(event) {
</table>
</div>

<h3>Methods</h3>
<div className="doc-tablewrapper">
<table className="doc-table">
<thead>
<tr>
<th>Name</th>
<th>Parameters</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>upload</td>
<td>-</td>
<td>Uploads the selected files.</td>
</tr>
<tr>
<td>clear</td>
<td>-</td>
<td>Clears the files list.</td>
</tr>
</tbody>
</table>
</div>

<h3>Styling</h3>
<p>Following is the list of structural style classes, for theming classes visit <Link to="/theming"> theming</Link> page.</p>
<div className="doc-tablewrapper">
Expand Down

0 comments on commit f8c1c40

Please sign in to comment.