8000 Enhance FieldDropdown's extendability · Issue #6349 · google/blockly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Enhance FieldDropdown's extendability #6349
Closed
@semiaddict

Description

@semiaddict

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 in content as is done for image options, but it is currently very difficult to do so without copying most of the code as validateOptions 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0