ui.Textbox.setDisabled
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Określa, czy pole tekstowe jest wyłączone.
Zwraca to pole tekstowe.
Wykorzystanie | Zwroty |
---|
Textbox.setDisabled(disabled) | ui.Textbox |
Argument | Typ | Szczegóły |
---|
to: ui.textbox | ui.Textbox | Instancja ui.Textbox. |
disabled | Wartość logiczna | Określa, czy pole tekstowe jest wyłączone. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003esetDisabled\u003c/code\u003e function allows you to enable or disable a textbox element within a user interface.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003esetDisabled\u003c/code\u003e on a ui.Textbox object returns the ui.Textbox instance itself, enabling method chaining.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edisabled\u003c/code\u003e is a boolean argument that determines the enabled/disabled state of the textbox.\u003c/p\u003e\n"]]],[],null,["# ui.Textbox.setDisabled\n\n\u003cbr /\u003e\n\nSets whether the textbox is disabled.\n\n\u003cbr /\u003e\n\nReturns this textbox.\n\n| Usage | Returns |\n|---------------------------------|------------|\n| Textbox.setDisabled`(disabled)` | ui.Textbox |\n\n| Argument | Type | Details |\n|--------------------|------------|----------------------------------|\n| this: `ui.textbox` | ui.Textbox | The ui.Textbox instance. |\n| `disabled` | Boolean | Whether the textbox is disabled. |"]]