Stay organized with collections
Save and categorize content based on your preferences.
blockly > Field > showEditor_
Field.showEditor_() method
A developer hook to create an editor for the field. This is no-op by default, and must be overriden to create an editor.
Signature:
protected showEditor_(_e?: Event): void;
Parameters
Parameter |
Type |
Description |
_e |
Event |
(Optional) Optional mouse event that triggered the field to open, or undefined if triggered programmatically. |
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["`showEditor_()` is a method intended for developers to customize how a field's editor is displayed."],["By default, this method does nothing and requires developers to override it to implement custom editor functionality."],["An optional `Event` parameter can be passed to `showEditor_()` which represents the event that triggered the editor to open."]]],[]]