InputFile
Extends:
react~Component → InputFile
InputFile is a component showing file input field
Access
Stage.Basic.Form.File
Usage
<Form errors={this.state.errors} ref="installForm" loading={this.state.loading}>
<Form.Field width="8" error={this.state.errors.widgetUrl}>
<Form.File placeholder="Select widget file" name="widgetFile" ref="widgetFile"/>
</Form.Field>
</Form>
Static Member Summary
Static Public Members | ||
public static |
propTypes: * propTypes |
Static Public Members
public static propTypes: * source
propTypes
Properties:
Name | Type | Attribute | Description |
name | string |
|
name of the field appended to 'fileName' string |
placeholder | string |
|
specifies a short hint that describes the expected input |
onChange | function |
|
function called on file change |
onReset | function |
|
function called on file reset |
loading | boolean |
|
if set to true opening file selector will be disabled |
disabled | boolean |
|
if set to true component will be disabled |
showInput | boolean |
|
if set to false input string field will not be presented |
showReset | boolean |
|
if set to false reset button will not be presented |
openButtonParams | object |
|
additional parameters for open file button, props for Button component |
help | string |
|
additional help information shown in Popup |