GitXplorerGitXplorer
y

Hazelnut

public
4 stars
1 forks
2 issues

Commits

List of commits on branch master.
Unverified
026aa8eaecddb91cd82e30293546922b924f1659

Update the documentation

yyrezgui committed 11 years ago
Unverified
f14ee8b8dcc2e1e13a4a8dcb7f7bbb30b8757133

Fix bad default filename

yyrezgui committed 11 years ago
Unverified
b0ea617291cd4e04ad7b101ecfda40d216a9f721

Change Url to Uri (more sens to me for local address)

yyrezgui committed 11 years ago
Unverified
8c62ff8ae5ff62311754cd27ed79761544c27650

Update the plugin.xml to version 0.2.0

yyrezgui committed 11 years ago
Unverified
af8bf1e6530d5db8f257bb841dea90b312eac741

Improve the signature of the function open

yyrezgui committed 11 years ago
Unverified
cb6a76297465d767530ba88f2fc2b9ffa38de2d2

Update the code to just open local files without the downloading process

yyrezgui committed 11 years ago

README

The README file for this repository.

Hazelnut

Phonegap plugin to display local files by providing URI. Inspiration from https://github.com/ti8mag/DocumentHandler

Usage

The plugin exposes one method on the window object:

HazelnutOpen(filename, uri, successCallback, errorCallback)

The parameters:

  • filename: allow to display another name that the actual name of the file. If null, it will take the actual name.
  • uri: A local URL to a document (format Absolute URL).
  • successHandler: Should be a function. Is called when the open of the file is done and the file is shown to the user.
  • failureHandler: Should be a function. Is called when there was a problem with opening the file.