Skip to content

Commit 31c6380

Browse files
authored
Update documentation.md
1 parent 8afc3cb commit 31c6380

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

documentation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ Use [BeautifyTools' Form Builder](https://beautifytools.com/html-form-builder.ph
5252

5353
> **NOTE: Other form builders are not supported, please only use the BeautifyTool's form builder.**
5454
55-
Insert the form's HTML string, **as a whole**, into the `Gui.addPage(htmlString, tabName)` function's @htmlString parameter, like so.
55+
Insert the form's HTML string, **as a whole**, into the `Gui.addPage(tabName, htmlString)` function's @htmlString parameter, like so.
5656

5757
```js
58-
Gui.addPage(`
58+
Gui.addPage("Some tab name", `
5959
<div class="rendered-form">
6060
<div class="formbuilder-button form-group field-button-1655324182259">
6161
<button type="button" class="btn-default btn" name="button-1655324182259" access="false" style="default" id="button-1655324182259">Button</button>
6262
</div>
6363
</div>
64-
`, "Some tab name");
64+
`);
6565
```
6666

6767
[Learn more about addPage function](#addpage-function)
@@ -130,13 +130,13 @@ Gui.settings.window.title = "GUI Demo"; // set window title
130130
Gui.settings.window.centered = true; // GUI starts at the center of the screen
131131
Gui.settings.window.external = true; // GUI opens up externally
132132

133-
Gui.addPage(`
133+
Gui.addPage("Some tab name", `
134134
<div class="rendered-form">
135135
<div class="formbuilder-button form-group field-button-1655324182259">
136136
<button type="button" class="btn-default btn" name="button-1655324182259" access="false" style="default" id="button-1655324182259">Button</button>
137137
</div>
138138
</div>
139-
`, "Some tab name");
139+
`);
140140

141141
Gui.open(() => {
142142
Gui.smartEvent("button-1655324182259", () => {

0 commit comments

Comments
 (0)