pondělí 23. března 2015

InputBox

How to use InputBox in script apps Google

Method

inputBox(prompt)
inputBox(prompt, buttons)
inputBox(title, prompt, buttons)

Buttons

OK                               Single “OK” button.
OK_CANCEL             “OK” and a “Cancel” button.
YES_NO                      “Yes” and “No” button.
YES_NO_CANCEL     “Yes”, “No” and “Cancel” button.

Example 1

var name = Browser.inputBox('Enter your name'); // CZ Zadej své jméno
 
function myFunction() {
  var name = Browser.inputBox('Enter your name');
} 
 
InputBox google apps










Example 2

function myFunction() {
  var name = Browser.inputBox('Enter your name' , Browser.Buttons.YES_NO);
}


  











Example 3

function myFunction() {
  var name = Browser.inputBox('First Input Box' ,'Enter your name' , Browser.Buttons.YES_NO);
}


 

Žádné komentáře:

Okomentovat