Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > Feld > getValidator
Methode "Field.getValidator()"
Ruft die Validierungsfunktion für bearbeitbare Felder oder null ab, wenn nicht festgelegt.
Unterschrift:
getValidator(): FieldValidator<T> | null;
Gibt zurück:
FieldValidator<T> | null
Validierungsfunktion oder null.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-10-11 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-10-11 (UTC)."],[[["The `Field.getValidator()` method retrieves the validation function associated with editable fields."],["If no validation function is set for the field, this method returns null."],["The returned validation function, if present, adheres to the `FieldValidator` type and can be used to validate user input within the field."]]],["The `Field.getValidator()` method retrieves the validation function for editable fields. If a validation function is set, it returns a `FieldValidator\u003cT\u003e`. If no validation function is set, it returns `null`. The validation function is used to validate the input of the editable fields. The method itself does not perform any validation, only retrieves it.\n"]]