blockly > comments > CommentView > addOnCollapseListener
phương thức comments.Bình luậnView.addOnTắtListener()
Đăng ký một lệnh gọi lại để theo dõi các thay đổi về độ thu gọn.
Chữ ký:
addOnCollapseListener(listener: (newCollapse: boolean) => void): void;
Tham số
Thông số | Loại | Nội dung mô tả |
---|---|---|
trình nghe | (newCollapse: boolean) => void |
Trường hợp trả lại hàng:
void