-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
Is your feature request related to a problem? Please describe.
@RoboErikG mentioned here that he would like to move to a new system for configuring field customizations.
I think this is a good idea, but I have some questions so I thought I'd move it to an issue.
Describe the solution you'd like
I think I'd rather start using an opt_config parameter on the constructor with a map of the configuration options. The keys should be the same as the JSON config which will also let you use the same code for both.
Describe alternatives you've considered
Open questions
Should this change only to apply to future fields? Or should the currently available field constructors change to support this?
Should the opt_config accept tooltips and other parameters that apply to all fields?
Should there be a hook so you can change the options at runtime (e.g. setOptions(config))?
Should the currently available hooks (e.g. setSpellcheck) be removed, deprecated, or left?