Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > Ereignisse > CommentCreate
Benachrichtigt die Abonnenten, dass ein Arbeitsbereichskommentar erstellt wurde.
Unterschrift:
export declare class CommentCreate extends CommentBase
Erweitert:CommentBase
Konstruktoren
Attribute
Attribut |
Modifikatoren |
Typ |
Beschreibung |
json? |
|
comments.State |
Optional: Die JSON-Darstellung des erstellten Workspace-Kommentars. |
type |
|
EventType |
|
xml? |
|
Element | DocumentFragment |
Optional: Die XML-Darstellung des erstellten Workspace-Kommentars. |
Methoden
Methode |
Modifikatoren |
Beschreibung |
run(forward) |
|
Führen Sie ein Ereignis vom Typ „Erstellung“ aus. |
toJson() |
|
Codieren Sie das Ereignis als JSON. |
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: 2025-07-25 (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: 2025-07-25 (UTC)."],[],["The `CommentCreate` class, extending `CommentBase`, notifies listeners about the creation of a workspace comment. It can be constructed with an optional comment. Key properties include the optional JSON (`comments.State`) and XML representations (`Element | DocumentFragment`) of the created comment, alongside a string `type`. The class provides methods to `run` the creation event and to `toJson`, converting the event data to a JSON format.\n"]]