Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 06f4319

Browse files
Openblocks-docsgitbook-bot
authored andcommitted
GitBook: [#63] No subject
1 parent 628b52d commit 06f4319

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

docs/SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
* [Create a new app](build-apps/create-a-new-app.md)
2222
* [App editor](build-apps/app-editor.md)
2323
* [Event handlers](build-apps/event-handlers.md)
24-
* [Use third-party libraries](build-apps/use-third-party-libraries.md)
24+
* [Write JavaScript](build-apps/write-javascript/README.md)
25+
* [Use third-party libraries](build-apps/write-javascript/use-third-party-libraries.md)
2526
* [Version and release management](build-apps/version-and-release-management.md)
2627

2728
## Workspace management
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Write JavaScript
2+

docs/build-apps/use-third-party-libraries.md renamed to docs/build-apps/write-javascript/use-third-party-libraries.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,25 +65,25 @@ Now let's take **cowsay** as an example and import it on app-level and workspace
6565

6666
### Import on App-level
6767

68-
Navigate to the left sidebar, click <img src="../.gitbook/assets/image (1).png" alt="" data-size="line"> > **Other** > **Scripts and style** > **Add a library**. Then paste the **cowsay** link here.
68+
Navigate to the left sidebar, click <img src="../../.gitbook/assets/image (1).png" alt="" data-size="line"> > **Other** > **Scripts and style** > **Add a library**. Then paste the **cowsay** link here.
6969

70-
<figure><img src="../.gitbook/assets/Add a library (2).png" alt=""><figcaption></figcaption></figure>
70+
<figure><img src="../../.gitbook/assets/Add a library (2).png" alt=""><figcaption></figcaption></figure>
7171

7272
Now you can write code in **JS query** to test its usage with `cowsay.say`:
7373

74-
<figure><img src="../.gitbook/assets/write code in JS query (2).png" alt=""><figcaption></figcaption></figure>
74+
<figure><img src="../../.gitbook/assets/write code in JS query (2).png" alt=""><figcaption></figcaption></figure>
7575

7676
or in component **Properties**:
7777

78-
<figure><img src="../.gitbook/assets/or in Properties (2).png" alt=""><figcaption></figcaption></figure>
78+
<figure><img src="../../.gitbook/assets/or in Properties (2).png" alt=""><figcaption></figcaption></figure>
7979

8080
And since you have set up cowsay just for **Openblocks's new application 1,** you can not use cowsay in another app.
8181

82-
<figure><img src="../.gitbook/assets/in another app (1).png" alt=""><figcaption></figcaption></figure>
82+
<figure><img src="../../.gitbook/assets/in another app (1).png" alt=""><figcaption></figcaption></figure>
8383

8484
### Import on Workspace-level libraries
8585

8686
Navigate to **Workspace settings** > **Advanced** > **JavaScript library** > **Add a library**. Then paste the **cowsay** link here and click **Save**. Now you can use **cowsay** library **** in any app of your workspace.\
87-
![](<../.gitbook/assets/Import on Workspace-level libraries (1).png>)
87+
![](<../../.gitbook/assets/Import on Workspace-level libraries (1).png>)
8888

89-
<figure><img src="../.gitbook/assets/Import on Workspace-level libraries-advanced.png" alt=""><figcaption></figcaption></figure>
89+
<figure><img src="../../.gitbook/assets/Import on Workspace-level libraries-advanced.png" alt=""><figcaption></figcaption></figure>

0 commit comments

Comments
 (0)