Methods
[client]
ish.ui.fs.load(fnCallback, sInputFileSelectoropt)
Loads the provided file via the browser.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
fnCallback |
function | Function to be called on load which receives `sFileContents` and `$loadEvent` as arguments. | ||
sInputFileSelector |
string |
<optional> |
input[type=file]
|
Value representing the CSS selector to the file input. |
[client]
ish.ui.fs.save(vContents, sFilenameopt, sContentTypeopt)
Downloads the provided contents as a file via the browser.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
vContents |
string | Value representing the file contents. | |
sFilename |
string |
<optional> |
Value representing filename. |
sContentType |
string |
<optional> |
Value representing content type of the file. |