blockly > comments > CollapseCommentBarButton

lớp comments.CollapseCommentBarButton

Nút bật/tắt trạng thái thu gọn của một bình luận.

Chữ ký:

export declare class CollapseCommentBarButton extends CommentBarButton 

Mở rộng: CommentBarButton

Hàm khởi tạo

Hàm dựng Đối tượng sửa đổi Mô tả
(constructor)(id, workspace, container) Tạo một thực thể CollapseCommentBarButton mới.

Thuộc tính

Thuộc tính Đối tượng sửa đổi Loại Mô tả
container

protected

readonly

SVGGElement
biểu tượng

protected

readonly

SVGImageElement Hình ảnh SVG xuất hiện trên nút này.
id

protected

readonly

chuỗi
workspace

protected

readonly

WorkspaceSvg

Phương thức

Phương thức Đối tượng sửa đổi Mô tả
dispose() Loại bỏ nút này.
performAction(e) Bật/tắt trạng thái thu gọn của bình luận chính.
reposition() Điều chỉnh vị trí của nút này trong vùng chứa.