gecko-dev/browser/components/preferences/widgets
Mark Striemer eeff9ddade Bug 1965046 - Support arbitrary controls with config-based prefs r=settings-reviewers,reusable-components-reviewers,frontend-codestyle-reviewers,hjones,Gijs
When a control is provided in config-based prefs then an element of that
name will be created and passed a standard set of properties. If the
element supports the static activatedProperty getter then that property
will be set to the setting's value, otherwise the value property will be
set.

This additionally adds support for the getControlConfig() method when
registering a Setting with preferencesBindings.js. This method allows
for settings code to modify the static configuration to create more
dynamic controls.

Differential Revision: https://phabricator.services.mozilla.com/D253056
2025-07-03 16:15:22 +00:00
..
setting-control Bug 1965046 - Support arbitrary controls with config-based prefs r=settings-reviewers,reusable-components-reviewers,frontend-codestyle-reviewers,hjones,Gijs 2025-07-03 16:15:22 +00:00
setting-group Bug 1965046 - Support arbitrary controls with config-based prefs r=settings-reviewers,reusable-components-reviewers,frontend-codestyle-reviewers,hjones,Gijs 2025-07-03 16:15:22 +00:00