Skip to content

Commit

Permalink
Add dependency documentation for comboboxes (#9)
Browse files Browse the repository at this point in the history
* add dependency description for comboboxes

* Update xlet-settings-ref.md
  • Loading branch information
schorschii authored Mar 7, 2024
1 parent 4896b96 commit 502c932
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions reference/git/cinnamon-tutorials/xlet-settings-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,10 @@ you would put `myCallback` for the callback value.
These fields can be added to any widget:

- `indent: true`: Indent the widget in the settings page to help with organizing your layout.
- `dependency: <key>`: where `key` is the
name of a `checkbox` setting. If that checkbox setting is un-checked,
this setting will be made insensitive (greyed out). The checkbox must occur <em>before</em> the setting that depends on it.
- `dependency: "<key>"`: where `<key>` is the name of a `checkbox` or `combobox` setting.
If it is a checkbox and that checkbox setting is un-checked, this setting will be hidden.
If it is a combobox, you need to state an option of this combobox too, e.g. `"type=http"`. Your setting will only be visible if the given option is selected in the combobox.
The checkbox/combobox must occur <em>before</em> the setting that depends on it.
- `tooltip`: Adds a popup tooltip to the widget

#### Signals
Expand Down

0 comments on commit 502c932

Please sign in to comment.