Find
C
ase-sensitive
R
egexp search
Path
mozilla-central
/
browser
/
components
/
preferences
/
widgets
/
setting-control
Navigation
Enable keyboard shortcuts
Name
Description
Size
setting-control.mjs
A Lit directive that applies all properties of an object to a DOM element. This directive interprets keys in the provided props object as follows: - Keys starting with `?` set or remove boolean attributes using `toggleAttribute`. - Keys starting with `.` set properties directly on the element. - Keys starting with `@` are currently not supported and will throw an error. - All other keys are applied as regular attributes using `setAttribute`. It avoids reapplying values that have not changed, but does not currently remove properties that were previously set and are no longer present in the new input. This directive is useful to "spread" an object of attributes/properties declaratively onto an element in a Lit template.
7387
setting-control.stories.mjs
1892