ish.ui.fs

Client-side file-based functionality.

Source:

Methods

[client] ish.ui.fs.load(fnCallback, sInputFileSelectoropt)

Source:
Loads the provided file via the browser.
Client-Side Only: This functionality is only available under a browser (Firefox, Chrome, etc.).
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)

Source:
Downloads the provided contents as a file via the browser.
Client-Side Only: This functionality is only available under a browser (Firefox, Chrome, etc.).
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.