Skip to content

Commit

Permalink
Add table for returned object
Browse files Browse the repository at this point in the history
  • Loading branch information
Samq64 committed Feb 23, 2024
1 parent f9f1a16 commit 287aaef
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions content/docs/reference/addon-api/addon.tab/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,49 @@ See [addon.tab.appendToSharedSpace](addon.tab.appendtosharedspace).
</tr>
</table>

<table>
<tr>
<th>Property</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td>container</td>
<td><code>HTMLElement</code></td>
<td>The container element.</td>
</tr>
<tr>
<td>content</td>
<td><code>HTMLElement</code></td>
<td>Where the content should be appended.</td>
</tr>
<tr>
<td>backdrop</td>
<td><code>HTMLElement</code></td>
<td>The modal overlay.</td>
</tr>
<tr>
<td>closeButton</td>
<td><code>HTMLElement</code></td>
<td>The close (X) button on the header.</td>
</tr>
<tr>
<td>open</td>
<td><code>Function</code></td>
<td>Opens the modal.</td>
</tr>
<tr>
<td>close</td>
<td><code>Function</code></td>
<td>Closes the modal.</td>
</tr>
<tr>
<td>remove</td>
<td><code>Function</code></td>
<td>Removes the modal, making it no longer usable.</td>
</tr>
</table>

Returns a blank modal using Scratch's styles.

### `addon.tab.confirm`
Expand Down Expand Up @@ -459,6 +502,7 @@ Returns a blank modal using Scratch's styles.
</table>
</td>
</tr>
</table>

<table>
<tr>
Expand Down Expand Up @@ -516,6 +560,7 @@ Similar to `window.confirm`, except it's asynchronous and uses Scratch's styles.
</table>
</td>
</tr>
</table>

<table>
<tr>
Expand Down

0 comments on commit 287aaef

Please sign in to comment.