fix readme issues

This commit is contained in:
Elisha Nuchi
2020-05-04 03:31:47 -04:00
parent 381e2c95ae
commit 4385be0f6b
+5 -8
View File
@@ -21,7 +21,7 @@ _The included demo React app for Google Sheets shows insertion, deletion and sel
``` ```
2. Enable the Google Apps Script API for your account by visiting[(script.google.com/home/usersettings)](https://script.google.com/home/usersettings): 2. Enable the Google Apps Script API for your account by visiting[(script.google.com/home/usersettings)](https://script.google.com/home/usersettings):
![Enable Google Apps Script](https://i.imgur.com/vuwkzMU.png 'enable the Google Apps Script API') <img width="215" height="82" src="https://i.imgur.com/vuwkzMU.png">
3. Log in to `clasp`: 3. Log in to `clasp`:
```bash ```bash
@@ -84,7 +84,6 @@ Insert/activate/delete sheets through a simple HTML dialog, built with React. Ac
.withSuccessHandler(response => doSomething(response)) .withSuccessHandler(response => doSomething(response))
.withFailureHandler(err => handleError(err)) .withFailureHandler(err => handleError(err))
.addSheet(sheetTitle); .addSheet(sheetTitle);
```
// Poof! With a little magic we can now do this: // Poof! With a little magic we can now do this:
import server from '../server'; import server from '../server';
@@ -105,16 +104,14 @@ handleError(err)
} }
} }
```` ```
Now we can use familiar Promises in our client-side code and have easy access to all server functions. See [the code](./src/client/server.js) for the implementation details. Now we can use familiar Promises in our client-side code and have easy access to all server functions. See [the code](./src/client/server.js) for the implementation details.
## Full Autocompletion - This project includes support for autocompletion and complete type definitions for all Google Apps Script methods.
This project includes support for autocompletion and complete type definitions for all Google Apps Script methods.
![autocomplete support](https://i.imgur.com/W0Ks6Wj.gif "autocomplete") ![autocomplete support](https://i.imgur.com/W0Ks6Wj.gif "autocomplete")
- Lists all available methods from the appropriate Google Apps Script API - All available methods from the Google Apps Script API are shown with full definitions and links to the official documentation, plus information on argument and return type
- Full definitions with links to official documentation, plus information on argument and return type
## Extending this app ## Extending this app
@@ -138,7 +135,7 @@ const onOpen = () => {
} }
global.onOpen = onOpen global.onOpen = onOpen
```` ```
## Multiple dialogs ## Multiple dialogs