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.
MatchType
Liệt kê cách so khớp giá trị chuỗi. So khớp chuỗi là một phép toán boolean.
Với một chuỗi, một cụm từ khớp (chuỗi) và một kiểu khớp, toán tử này sẽ xuất ra true trong các trường hợp sau:
Nếu kiểu khớp bằng CHÍNH XÁC và cụm từ khớp bằng chuỗi.
Nếu kiểu khớp bằng PREFIX và cụm từ khớp là tiền tố của chuỗi.
Nếu kiểu khớp bằng BẤT KỲ và cụm từ khớp là một chuỗi con của chuỗi.
Bạn có thể sử dụng enum này trong một thành phần điều khiển bộ lọc chuỗi để quyết định những hàng cần lọc ra khỏi bảng dữ liệu. Với một cột để lọc, chỉ giữ lại những hàng khớp với giá trị đã nhập trong hộp nhập bộ lọc, bằng cách sử dụng một trong các kiểu khớp trên.
Để gọi một enum, bạn gọi lớp mẹ, tên và thuộc tính của enum đó. Ví dụ:
Charts.MatchType.EXACT.
[[["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: 2025-07-26 UTC."],[[["`MatchType` is an enumeration used to define how a string value should be matched against a given search term."],["It provides three options: `EXACT`, `PREFIX`, and `ANY` for matching exact values, prefixes, and substrings respectively."],["This enumeration can be utilized by string filter controls to filter data table rows based on user input and the selected match type."],["Calling a `MatchType` property is done using the parent class, name, and desired property, for instance, `Charts.MatchType.EXACT`."],["The `getName()` method is available to retrieve the name of the match type for use in JSON options."]]],["MatchType defines string matching criteria. `EXACT` requires an exact string match. `PREFIX` checks if the match term is at the beginning of the string. `ANY` verifies if the match term is a substring. This determines if a row should be kept when filtering a data table. `getName()` returns the match type's name. The enum can be called using `Charts.MatchType.[property]` (e.g., `Charts.MatchType.EXACT`).\n"]]