Closed Bug 710113 Opened 13 years ago Closed 6 years ago

Support boolean pref groups for simple-prefs

Categories

(Add-on SDK Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: erikvvold, Unassigned)

References

Details

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.
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]
Add-on SDK is no longer supported so resolving bugs as INCOMPLETE
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.