Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > Eingaben > ValueInput > (Konstrukteur)
Erstellt eine neue Instanz der ValueInput
-Klasse
Unterschrift:
constructor(name: string, block: Block);
Parameter
Parameter |
Typ |
Beschreibung |
Name |
String |
Sprachneutrale Kennung, mit der diese Eingabe wieder gefunden werden kann. |
Block |
Blockieren |
Der Block, der diesen Eingabe enthält. |
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-09-09 (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-09-09 (UTC)."],[[["This constructor creates a new `ValueInput` object, which represents an input on a Blockly block that accepts a single value."],["It takes two arguments: the `name` of the input (used for identification) and the `block` it belongs to."],["The `name` should be a language-neutral identifier, allowing you to locate this input later."]]],["The `ValueInput` class constructor creates a new `ValueInput` instance. It requires two parameters: `name` (a string), which serves as a language-neutral identifier for the input, and `block` (of type `Block`), representing the block that contains this specific input. This function initializes a new input object associated with a particular block, using the provided name for identification.\n"]]