Repository: cordova-plugin-dialogs Updated Branches: refs/heads/master 90ad94c33 -> 6d7806c62
Lisa testing pulling in plugins for plugin: cordova-plugin-dialogs Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/commit/88859680 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/tree/88859680 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/diff/88859680 Branch: refs/heads/master Commit: 8885968037e6d1e9f9a3d2f6d7e86269b6c8da25 Parents: e4829eb Author: ldeluca <[email protected]> Authored: Tue May 27 17:49:25 2014 -0400 Committer: ldeluca <[email protected]> Committed: Tue May 27 17:49:25 2014 -0400 ---------------------------------------------------------------------- doc/ja/index.md | 246 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 246 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs/blob/88859680/doc/ja/index.md ---------------------------------------------------------------------- diff --git a/doc/ja/index.md b/doc/ja/index.md new file mode 100644 index 0000000..20b430a --- /dev/null +++ b/doc/ja/index.md @@ -0,0 +1,246 @@ +<!--- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +# org.apache.cordova.dialogs + +This plugin provides access to some native dialog UI elements. + +## ã¤ã³ã¹ãã¼ã« + + cordova plugin add org.apache.cordova.dialogs + + +## ã¡ã½ãã + +* `navigator.notification.alert` +* `navigator.notification.confirm` +* `navigator.notification.prompt` +* `navigator.notification.beep` + +## navigator.notification.alert + +Shows a custom alert or dialog box. Most Cordova implementations use a native dialog box for this feature, but some platforms use the browser's `alert` function, which is typically less customizable. + + navigator.notification.alert(message, alertCallback, [title], [buttonName]) + + +* **ã¡ãã»ã¼ã¸**: ãã¤ã¢ãã° ã¡ãã»ã¼ã¸ã*(æåå)* + +* **alertCallback**: è¦åãã¤ã¢ãã°ãéããããã¨ãã«å¼ã³åºãã³ã¼ã«ããã¯ã*(æ©è½)* + +* **title**: Dialog title. *(String)* (Optional, defaults to `Alert`) + +* **buttonName**: ãã¿ã³ã®ååã*(æåå)*(çç¥å¯è½ãæ¢å®å¤ã¯`OK`) + +### ä¾ + + function alertDismissed() { + // do something + } + + navigator.notification.alert( + 'You are the winner!', // message + alertDismissed, // callback + 'Game Over', // title + 'Done' // buttonName + ); + + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* ãã©ãã¯ããªã¼ 10 +* Firefox ã® OS +* iOS +* Tizen +* Windows Phone 7 㨠8 +* Windows 8 + +### Windows Phone 7 㨠8 ç + +* çµã¿è¾¼ã¿ã®ãã©ã¦ã¶ã¼è¦åããªãå¼ã³åºããæ¬¡ã®ããã« 1 ã¤ããã¤ã³ããããã¨ãã§ãã¾ã `alert()` ãã°ãã¼ãã« ã¹ã³ã¼ãã§ã + + window.alert = navigator.notification.alert; + + +* 両æ¹ã® `alert` 㨠`confirm` ã¯éããããã³ã°å¼ã³åºããçµæã¯éåæçã«ã®ã¿å©ç¨ã§ãã¾ãã + +### Firefox OS Quirks: + +Both native-blocking `window.alert()` and non-blocking `navigator.notification.alert()` are available. + +## navigator.notification.confirm + +Displays a customizable confirmation dialog box. + + navigator.notification.confirm(message, confirmCallback, [title], [buttonLabels]) + + +* **ã¡ãã»ã¼ã¸**: ãã¤ã¢ãã° ã¡ãã»ã¼ã¸ã*(æåå)* + +* **confirmCallback**: ã¤ã³ããã¯ã¹ (1ã2ãã¾ã㯠3) ãæ¼ããããã¿ã³ã¾ãã¯ãã¤ã¢ãã° ããã¯ã¹ã¯ããã¿ã³ãæ¼ã ï¼0ï¼ ãªãã«è§£éãããã¨ãã«å¼ã³åºãã³ã¼ã«ããã¯ã*(æ©è½)* + +* **ã¿ã¤ãã«**: ãã¤ã¢ãã°ã®ã¿ã¤ãã«ã*(æåå)*(çç¥å¯è½ãæ¢å®å¤ã¯`Confirm`) + +* **buttonLabels**: ãã¿ã³ã®ã©ãã«ãæå®ããæååã®é åã*(é å)*(çç¥å¯è½ãæ¢å®å¤ã¯ [ `OK,Cancel` ]) + +### confirmCallback + +The `confirmCallback` executes when the user presses one of the buttons in the confirmation dialog box. + +The callback takes the argument `buttonIndex` *(Number)*, which is the index of the pressed button. Note that the index uses one-based indexing, so the value is `1`, `2`, `3`, etc. + +### ä¾ + + function onConfirm(buttonIndex) { + alert('You selected button ' + buttonIndex); + } + + navigator.notification.confirm( + 'You are the winner!', // message + onConfirm, // callback to invoke with index of button pressed + 'Game Over', // title + ['Restart','Exit'] // buttonLabels + ); + + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* ãã©ãã¯ããªã¼ 10 +* Firefox ã® OS +* iOS +* Tizen +* Windows Phone 7 㨠8 +* Windows 8 + +### Windows Phone 7 㨠8 ç + +* çµã¿è¾¼ã¿ãã©ã¦ã¶ã¼ã®æ©è½ã¯ããã¾ãã `window.confirm` ãå²ãå½ã¦ããã¨ã«ãã£ã¦ãã¤ã³ããããã¨ãã§ãã¾ãã + + window.confirm = navigator.notification.confirm; + + +* å¼ã³åºãã `alert` 㨠`confirm` ã§ã¯éããããã³ã°ãçµæã¯éåæçã«ã®ã¿ä½¿ç¨ã§ãã¾ãã + +### Firefox OS Quirks: + +Both native-blocking `window.confirm()` and non-blocking `navigator.notification.confirm()` are available. + +## navigator.notification.prompt + +Displays a native dialog box that is more customizable than the browser's `prompt` function. + + navigator.notification.prompt(message, promptCallback, [title], [buttonLabels], [defaultText]) + + +* **ã¡ãã»ã¼ã¸**: ãã¤ã¢ãã° ã¡ãã»ã¼ã¸ã*(æåå)* + +* **promptCallback**ï¼ ãã¿ã³ãæ¼ãããã¨ãã«å¼ã³åºãã³ã¼ã«ããã¯ã*(æ©è½)* + +* **ã¿ã¤ãã«**: *(æåå)* (çç¥å¯è½ãæ¢å®å¤ã®ã¿ã¤ãã«] ãã¤ã¢ãã°`Prompt`) + +* **buttonLabels**ï¼ ãã¿ã³ãæå®ããæååã®é å*(é å)* (çç¥å¯è½ãæ¢å®å¤ã®ã©ãã«`["OK","Cancel"]`) + +* **ããã**: æ¢å®ããã¹ã ããã¯ã¹ã®å ¥åå¤ ( `String` ) (çç¥å¯è½ãæ¢å®: ç©ºã®æåå) + +### promptCallback + +The `promptCallback` executes when the user presses one of the buttons in the prompt dialog box. The `results` object passed to the callback contains the following properties: + +* **buttonIndex**: æ¼ããããã¿ã³ã®ã¤ã³ããã¯ã¹ã*(æ°)*ã¡ã¢ãã¨ãã¤ã³ããã¯ã¹ã使ç¨ã㦠1 ãã¼ã¹ã®ã¤ã³ããã¯ã¹åãã®ã§ãå¤ã¯ `1` ã `2` ã `3` ãçã + +* **input1**: ããã³ãã ãã¤ã¢ãã° ããã¯ã¹ã«å ¥åããããã¹ãã*(æåå)* + +### ä¾ + + function onPrompt(results) { + alert("You selected button number " + results.buttonIndex + " and entered " + results.input1); + } + + navigator.notification.prompt( + 'Please enter your name', // message + onPrompt, // callback to invoke + 'Registration', // title + ['Ok','Exit'], // buttonLabels + 'Jane Doe' // defaultText + ); + + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* Firefox ã® OS +* iOS + +### Android ã®ç + +* Android ã¯æå¤§ 3 ã¤ã®ãã¿ã³ããµãã¼ããã¦ãããããã以ä¸ç¡è¦ãã¾ãã + +* ã¢ã³ããã¤ã 3.0 ã¨å¾ãããã®ãã¼ãã使ç¨ããããã¤ã¹ãéã®é åºã§ãã¿ã³ã表示ããã¾ãã + +### Firefox OS Quirks: + +Both native-blocking `window.prompt()` and non-blocking `navigator.notification.prompt()` are available. + +## navigator.notification.beep + +The device plays a beep sound. + + navigator.notification.beep(times); + + +* **å**: ãã¼ãé³ãç¹°ãè¿ãåæ°ã*(æ°)* + +### ä¾ + + // Beep twice! + navigator.notification.beep(2); + + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* ãã©ãã¯ããªã¼ 10 +* iOS +* Tizen +* Windows Phone 7 㨠8 +* Windows 8 + +### Amazon Fire OS Quirks + +* ã¢ãã¾ã³ç« OS ããã©ã«ã**è¨å®/表示 ï¼ ãµã¦ã³ã**ããã«ã®ä¸ã«æå®ãã**éç¥é³**ãæããã¦ãã¾ãã + +### Android ã®ç + +* ã¢ã³ããã¤ã ããã©ã«ã**éç¥çä¿¡é³****è¨å®/ãµã¦ã³ã ï¼ ãã£ã¹ãã¬ã¤**ããã«ã®ä¸ã«æå®ãæããã¦ãã¾ãã + +### Windows Phone 7 㨠8 ç + +* ã³ã«ããåå¸ããã¸ã§ããªã㯠ãã¼ãé³ãã¡ã¤ã«ã«ä¾åãã¾ãã + +### Tizen ã®ç + +* Tizen ã¯ãã¡ãã£ã¢ API çµç±ã§ãªã¼ãã£ãª ãã¡ã¤ã«ãåçãã¦ãã¼ãé³ãå®è£ ãã¾ãã + +* ãã¼ãé³ãã¡ã¤ã«ããå¿ è¦ãããã¾ãçãã§ããå¿ è¦ãããã¾ãã `sounds` ãã¢ããªã±ã¼ã·ã§ã³ã®ã«ã¼ã ãã£ã¬ã¯ããªã®ãµããã£ã¬ã¯ããªã¨å½åããå¿ è¦ãããã¾ã`beep.wav`. \ No newline at end of file
