blockly > Gesto > currentDropdownOwner
Proprietà Gesti.currentDropdownOwner
Il proprietario del menu a discesa quando viene avviato per la prima volta questo gesto. Necessario perché chiuderemo il menu a discesa prima che i campi possano intervenire sui loro eventi e per alcuni campi interessa il proprietario del menu a discesa.
Firma:
currentDropdownOwner: Field | null;
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-08-21 UTC.
[null,null,["Ultimo aggiornamento 2024-08-21 UTC."],[[["`currentDropdownOwner` stores the initial owner of the dropdown when a gesture begins."],["This property is essential because dropdowns are closed before field events are processed, and some fields need to know the dropdown's owner."],["It helps ensure that fields can react appropriately even after the dropdown is closed during a gesture."]]],["The `currentDropdownOwner` property within the `Gesture` class stores the owner of the dropdownDiv at the start of a gesture. This information, which can be a `Field` or `null`, is crucial because dropdowns are closed before fields handle their events. Certain fields require knowledge of the dropdown's original owner to function correctly.\n"]]