Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "nw-dialog", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Node Webkit Dialog", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,5 +5,4 @@ # nw-dialog | ||
## Installation | ||
Use Node mode | ||
Use Node Mode | ||
``` | ||
@@ -15,7 +14,7 @@ var dialog = require('nw-dialog') | ||
Use Client Mode | ||
Use Client mode | ||
``` | ||
<script src="nw-dialog/index.js"></script> | ||
nw.Dialog.openFileDialog( ... ) | ||
nw.Dialog.openFileDialog( ... ) | ||
// or | ||
@@ -30,20 +29,20 @@ window.Dialog.openFileDialog( ... ) | ||
``` | ||
nw.Dialog.openFileDialog(function(result) { | ||
alert(result) | ||
dialog.openFileDialog(function(result) { | ||
alert(result) | ||
}) | ||
``` | ||
With File Type | ||
With file type | ||
``` | ||
nw.Dialog.openFileDialog('.zip, .rar', function(result) { | ||
alert(result) | ||
dialog.openFileDialog('.zip, .rar', function(result) { | ||
alert(result) | ||
}) | ||
``` | ||
Multiple Select | ||
Multiple select | ||
``` | ||
nw.Dialog.openFileDialog('.zip, .rar', true, function(result) { | ||
alert(result) | ||
dialog.openFileDialog('.zip, .rar', true, function(result) { | ||
alert(result) | ||
}) | ||
@@ -56,20 +55,20 @@ ``` | ||
``` | ||
nw.Dialog.saveFileDialog(function(result) { | ||
alert(result) | ||
dialog.saveFileDialog(function(result) { | ||
alert(result) | ||
}) | ||
``` | ||
With File Name | ||
With file name | ||
``` | ||
nw.Dialog.saveFileDialog('name.txt', function(result) { | ||
alert(result) | ||
dialog.saveFileDialog('name.txt', function(result) { | ||
alert(result) | ||
}) | ||
``` | ||
File Name and Default Directory | ||
File name and default directory | ||
``` | ||
nw.Dialog.saveFileDialog('name.txt', '/Users/didanurwanda', function(result) { | ||
alert(result) | ||
dialog.saveFileDialog('name.txt', '/Users/didanurwanda', function(result) { | ||
alert(result) | ||
}) | ||
@@ -82,5 +81,5 @@ ``` | ||
``` | ||
nw.Dialog.folderBrowseDialog(function(result) { | ||
alert(result) | ||
dialog.folderBrowseDialog(function(result) { | ||
alert(result) | ||
}) | ||
``` | ||
``` |
4046