Skip to content

Commit

Permalink
minor doc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Samq64 committed Dec 15, 2023
1 parent 46715ee commit 565c012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/reference/addon-api/addon.tab/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ while (true) {
### Using `addon.tab.displayNoneWhileDisabled` (`dynamicDisable`)
We use `addon.tab.displayNoneWhileDisabled` to hide an image when the addon gets disabled.
We create a button to hide the image when clicked, and the image succesfully gets hidden, even if the addon is enabled.
We also set the `display` CSS property of the image to `flex` when visible, even tho that is not the default value for images.
We also set the `display` CSS property of the image to `flex` when visible, even though that is not the default value for images.
```js
/* userscript.js */
const img = document.createElement("img");
Expand Down
1 change: 1 addition & 0 deletions content/docs/reference/addon-manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ Sub-properties:
- `type` (string, required) Either `boolean` (an on/off toggle), `positive_integer` (an input box that only allows 0 and above), `integer` (an input box that allows any integer) `string` (up to 100 chars),`color` (a browser color input that returns a hex code), `table` (list of elements, where user can add custom elements, remove existing ones and change order of them) or `select` (see `potential_values`).
- `default` (string, required) The default value for the option. A boolean, string, or number, depending on the specified type.
- `min`/`max` (number, optional for `positive_integer`, `integer`, and `string` types only) For integers, the minimum/maximum value allowed, and for strings, the minimum/maximum allowed length of the value.
- `untranslated` (boolean, optional for `string` type only) Whether the value of `default` should not be sent for tranlations. By default it is.
- `potentialValues` (array of objects, required for `select` type only) Array of objects, with properties `id`, the value received from `addon.settings.get()`, and `name`, the user-visible option text.
- `allowTransparency` (boolean, required for `color` type only) Whether the user should be allowed to enter transparent colors or not.
- `row` (array of objects, only for `table` type). Every element in table contains this array of objects. Each object should contain: `name`, `id`, `type` (any setting type other than `table`) and `default`. For example:
Expand Down

0 comments on commit 565c012

Please sign in to comment.