Enhance FieldDropdown's extendability #6349
Labels
component: fields
help wanted
External contributions actively solicited
issue: feature request
Describes a new feature and why it should be added
Milestone
Is your feature request related to a problem? Please describe.
I would like to extend the FieldDropdown class to allow disabled options.
I was hoping to be able to simply override the
dropdownCreate_
function, to parse new option parameters incontent
as is done for image options, but it is currently very difficult to do so without copying most of the code asvalidateOptions
is not a member of the class, so it cannot be adapted to take new parameters into consideration when validating the options.Describe the solution you'd like
Move
validateOptions
to be a static function (possible private) of the FieldDropdown class.Describe alternatives you've considered
The only alternative I can think of to achieve what I need at the moment is to copy the constructor and
getOptions
of the class into the new class.Additional context
None.
The text was updated successfully, but these errors were encountered: