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
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
blockly > blockRendering > InputRow
Một đối tượng chứa thông tin về một hàng chứa một hoặc nhiều dữ liệu đầu vào.
Chữ ký:
export declare class InputRow extends Row
Mở rộng: Hàng
Hàm khởi tạo
Thuộc tính
Thuộc tính |
Đối tượng sửa đổi |
Loại |
Mô tả |
connectedBlockWidths |
|
số |
Tổng chiều rộng của tất cả các khối được kết nối với hàng này. |
Phương thức
Phương thức |
Đối tượng sửa đổi |
Mô tả |
endsWithElemSpacer() |
|
|
measure() |
|
Kiểm tra tất cả thành phần phụ và điền tất cả thuộc tính kích thước trên hàng. |
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-10-15 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-10-15 UTC."],[[["The `blockRendering.InputRow` class, extending the `Row` class, stores information about a row containing one or more inputs in a Blockly block."],["It includes properties like `connectedBlockWidths`, representing the total width of connected blocks, and methods like `measure()` for size calculations and `endsWithElemSpacer()` for layout checks."],["This class is crucial for organizing and rendering input elements within Blockly blocks, ensuring proper alignment and visual representation."]]],["The `InputRow` class, extending `Row`, manages rows containing inputs within a block rendering system. It is constructed with constants and tracks the combined width of all connected blocks via the `connectedBlockWidths` property. Core actions include measuring the row's subcomponents to determine its overall size with the `measure()` method. Additionally it can check if a row ends with an element spacer using the method `endsWithElemSpacer()`.\n"]]