Support boolean pref groups for simple-prefs

NEW
Unassigned

Status

Add-on SDK
General
P2
normal
7 years ago
5 years ago

People

(Reporter: Erik Vold, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
This was suggested in the mailing list:

"I want to have a input(checkbox) that has sub-inputs and when the input is unchecked the sub-inputs get disabled."

I'm thinking that we could provide a new type called "boolgroup" which contains an array of any pref types which are all disabled if the bool root pref is disabled, and all enabled if the pref is enabled.

So json would look like:

"preferences": [{
  "name": "prefgroup",
  "type": "boolgroup",
  "title": "This is a group of prefs:",
  "value": false,
  "children": [{
    "name": "pref",
    "title": "Some pref",
    "type": "string",
    "value": ""
  }]
}]

so "pref" would exist but appear disabled in the EM.

Updated

7 years ago
Priority: -- → P2
Assignee: nobody → evold
Assignee: evold → nobody
Whiteboard: [good first bug]
currently the expected way to do this would be in options_xul.py, but since python code is going away (hopefully) soon, maybe this isn't a "good first bug", and also maybe it should be re-triaged..
Priority: P2 → --
Whiteboard: [good first bug]

Updated

5 years ago
Priority: -- → P2

Updated

5 years ago
Duplicate of this bug: 953365
You need to log in before you can comment on or make changes to this bug.