blockly > comments > DeleteCommentBarButton

comments.DeleteCommentBarButton 类

用于删除评论的按钮。

Signature:

export declare class DeleteCommentBarButton extends CommentBarButton 

扩展自CommentBarButton

构造函数

构造函数 修饰符 说明
(constructor)(id, workspace, container) 创建新的 DeleteCommentBarButton 实例。

属性

属性 修饰符 类型 说明
容器

protected

readonly

SVGGElement
图标

protected

readonly

SVGImageElement 此按钮上显示的 SVG 图像。
id

protected

readonly

字符串
工作区

protected

readonly

WorkspaceSvg

方法

方法 修饰符 说明
dispose() 处置此按钮。
performAction(e) 删除父级评论。
reposition() 调整此按钮在其容器内的位置。