Các điều kiện ràng buộc mà tất cả đều phải đáp ứng để mô-đun hiển thị.
sortIndex
integer
Chỉ mục để sắp xếp các mô-đun. Các mô-đun có chỉ mục sắp xếp thấp hơn sẽ hiển thị trước các mô-đun có chỉ mục sắp xếp cao hơn. Nếu không chỉ định, chỉ mục sắp xếp được giả định là INT_MAX. Đối với hai mô-đun có cùng một chỉ mục, hành vi sắp xếp không được xác định.
ModuleViewConstraints
Các điều kiện ràng buộc mà tất cả đều phải đáp ứng để mô-đun hiển thị.
Khoảng thời gian mà mô-đun sẽ hiển thị cho người dùng. Có thể xác định cả startTime và endTime. Mô-đun sẽ hiển thị ngay sau khi chèn, trừ phi bạn đặt startTime. Mô-đun sẽ hiển thị vô thời hạn nếu bạn không đặt endTime.
[[["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-11-13 UTC."],[[["Value Added Modules require a header and a URI, along with optional fields like body, image, view constraints, and sort index for customization."],["The module displays a header, body (optional), and image (optional), and directs users to a specified URI upon clicking."],["View constraints, such as a display interval, can be set to control when the module is shown to users."],["Modules can be sorted using the `sortIndex` field, with lower values appearing before higher ones."]]],["The Value Added module requires `header` and `uri` fields. It uses a JSON format that includes `header`, `body`, `image`, `uri`, `viewConstraints`, and `sortIndex`. `viewConstraints` dictates when the module is displayed, using `displayInterval` to specify `startTime` and `endTime`. Modules are ordered by `sortIndex`, with lower indices appearing first. `header` and `body` have character limits. `uri` handles links, and `image` should maintain a 1:1 ratio.\n"]]