blockly > رویدادها > CommentCreate > (سازنده)
یک نمونه جدید از کلاس CommentCreate
می سازد
امضا:
constructor(opt_comment?: WorkspaceComment);
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
opt_comment | Comment فضای کاری | (اختیاری) نظر ایجاد شده. برای یک رویداد خالی تعریف نشده است. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["The `CommentCreate` event is triggered when a new workspace comment is created in Blockly."],["The constructor can optionally take a `WorkspaceComment` object representing the created comment."],["If no `WorkspaceComment` is provided, the event represents the creation of a blank comment."]]],["The `CommentCreate` class constructor creates a new instance, representing the creation of a comment within a workspace. It optionally accepts a `WorkspaceComment` object as a parameter, which defines the comment being created. If no comment is provided, it signifies a blank event. This constructor is crucial for initializing the data associated with a comment creation event within the system.\n"]]