MDirectoryReader

From HTML5 Builder
Jump to: navigation, search

MDirectoryReader lets your application list the content of a directory, files and folders.

Functions

These are JavaScript functions you can call when you use this component in a screen.

Note: Replace ComponentName with the actual name of the component, that is, the value of its Name property. For example: MDirectoryReader1.

ComponentNameReadEntries
Read file and folder entries inside the folder it works on. It triggers OnReadEntries event, or OnReadEntriesError if an error occurs.

Events

These are JavaScript MDirectoryReader events you can associate to JavaScript functions.

OnReadEntries
This event gets triggered when ComponentNameReadEntries successfully returns an array of DirectoryEntry and FileEntry objects, which is its only parameter.
OnReadEntriesError
This event gets triggered when an error occurs after calling ComponentNameReadEntries. Its only parameter is a ContactError object.

See Also