components.AttachmentsForm Class
AttachmentsForm
Constructor
components.AttachmentsForm
-
props -
[props]
Parameters:
-
propsObject -
[props]Number optionalmaxSize Max size for a single file to be uploaded
Item Index
Methods
- clear
- clear
- clear
- getFiles
- getFiles
- getFiles
- handleFileChange
- handleFileChange
- handleFileChange
- isUnderSizeLimit
- isUnderSizeLimit
- isUnderSizeLimit
- openFileDialog
- openFileDialog
- openFileDialog
- removeFile
- removeFile
- removeFile
- setBackbone
- setBackbone
- toUniqueId static
- toUniqueId static
- toUniqueId static
Methods
clear
()
Clear selected files
clear
()
Clear selected files
clear
()
Clear selected files
getFiles
()
Array
Get files selected by the user
Returns:
of HTML 5 File objects
getFiles
()
Array
Get files selected by the user
Returns:
of HTML 5 File objects
getFiles
()
Array
Get files selected by the user
Returns:
of HTML 5 File objects
handleFileChange
()
Copy HTML 5 file objects from the file input to the component state
handleFileChange
()
Copy HTML 5 file objects from the file input to the component state
handleFileChange
()
Copy HTML 5 file objects from the file input to the component state
isUnderSizeLimit
-
file
Parameters:
-
fileHTML5 File Object
Returns:
Boolean
isUnderSizeLimit
-
file
Parameters:
-
fileHTML5 File Object
Returns:
Boolean
isUnderSizeLimit
-
file
Parameters:
-
fileHTML5 File Object
Returns:
Boolean
openFileDialog
()
Open file section dialog
openFileDialog
()
Open file section dialog
openFileDialog
()
Open file section dialog
removeFile
-
file
Parameters:
-
fileHTML5 File ObjectRemove given file from the component state
removeFile
-
file
Parameters:
-
fileHTML5 File ObjectRemove given file from the component state
removeFile
-
file
Parameters:
-
fileHTML5 File ObjectRemove given file from the component state
setBackbone
-
attrs -
cb
Like React setState but assumes all values to be Backbone event emitters.
Listens for replace events. The first event argument is assumed to be
a replacement event emitter for the given key.
Parameters:
-
attrsObject -
cbFunction
setBackbone
-
attrs -
cb
Like React setState but assumes all values to be Backbone event emitters.
Listens for replace events. The first event argument is assumed to be
a replacement event emitter for the given key.
Parameters:
-
attrsObject -
cbFunction
toUniqueId
-
file
Figure out an unique id for a HTML 5 File Object
Not perfect...
Parameters:
-
fileHTML5 File Object
Returns:
toUniqueId
-
file
Figure out an unique id for a HTML 5 File Object
Not perfect...
Parameters:
-
fileHTML5 File Object
Returns:
toUniqueId
-
file
Figure out an unique id for a HTML 5 File Object
Not perfect...
Parameters:
-
fileHTML5 File Object
