Bản khảo sát nghiên cứu: Cho chúng tôi biết trải nghiệm của bạn khi sử dụng Blockly
Bắt đầu khảo sát
chặn > Hộp công cụ > addToolboxItem_
Thêm một mục vào hộp công cụ.
Chữ ký:
protected addToolboxItem_(toolboxItem: IToolboxItem): void;
Tham số
Thông số |
Loại |
Mô tả |
toolboxItem |
IToolboxItem |
Mục trong hộp công cụ. |
Trường hợp trả lại hàng:
void
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-08-21 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-08-21 UTC."],[[["The `addToolboxItem_` method is used to add items to the Blockly toolbox."],["It's a protected method that takes an `IToolboxItem` as input, representing the item to be added."],["The method has no return value and modifies the toolbox directly by adding the specified item."]]],["The `addToolboxItem_()` method adds an item to a toolbox. It accepts a single parameter, `toolboxItem`, which is of type `IToolboxItem`. This parameter represents the item to be added to the toolbox. The method's return type is void, indicating it does not return any value. The method is used for managing the contents of a toolbox by adding items.\n"]]