From 736c3d3af48fa4f2f769fc2f769ab96e3d33e82d Mon Sep 17 00:00:00 2001 From: Damyan Petev Date: Fri, 14 Jun 2024 10:02:55 +0300 Subject: [PATCH] refactor(grids): cleanup search snippets --- en/components/grids_templates/search.md | 18 +++++++++--------- jp/components/grids_templates/search.md | 18 +++++++++--------- kr/components/grids_templates/search.md | 18 +++++++++--------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/en/components/grids_templates/search.md b/en/components/grids_templates/search.md index 8629f40098..2bd6a07281 100644 --- a/en/components/grids_templates/search.md +++ b/en/components/grids_templates/search.md @@ -149,17 +149,17 @@ The methods from above return a **number** value (the number of times the @@igCo ### Display results count Let's also display the position of the current occurrence, along with the total results count! We can do this by using the grid's `lastSearchInfo` property. This property is automatically updated when using the **find** methods. -- The `@@igObjectRef.lastSearchInfo.matchInfoCache.length` value will give us the total results count. +- The `@@igObjectRef.lastSearchInfo.matchCount` value will give us the total results count. - The `@@igObjectRef.lastSearchInfo.activeMatchIndex` value will give us the index position of the current occurrence (match). ```html -
- - {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchInfoCache.length }} results +
+ + {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchCount }} results - + No results
@@ -305,11 +305,11 @@ On the right in our input group, let's create three separate containers with the -
- - {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchInfoCache.length }} results +
+ + {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchCount }} results - + No results
diff --git a/jp/components/grids_templates/search.md b/jp/components/grids_templates/search.md index 17e6f1b743..10f5a1bb59 100644 --- a/jp/components/grids_templates/search.md +++ b/jp/components/grids_templates/search.md @@ -150,17 +150,17 @@ public exactMatch: boolean = false; ### 検索結果の個数を表示 検索で見つかった現在の場所と総個数を示します。グリッドの `lastSearchInfo` プロパティを使用します。このプロパティは、**find** メソッド使用時に自動的に更新されます。 -- `@@igObjectRef.lastSearchInfo.matchInfoCache.length` 値は検索で見つかった個数です。 +- `@@igObjectRef.lastSearchInfo.matchCount` 値は検索で見つかった個数です。 - `@@igObjectRef.lastSearchInfo.activeMatchIndex` 値は、現在の一致 (出現) のインデックス位置です。 ```html -
- - {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchInfoCache.length }} results +
+ + {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchCount }} results - + No results
@@ -306,11 +306,11 @@ public clearSearch() { -
- - {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchInfoCache.length }} results +
+ + {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchCount }} results - + No results
diff --git a/kr/components/grids_templates/search.md b/kr/components/grids_templates/search.md index 9b956f53f4..164b10f036 100644 --- a/kr/components/grids_templates/search.md +++ b/kr/components/grids_templates/search.md @@ -145,17 +145,17 @@ public exactMatch: boolean = false; #### 결과 수 표시 총 결과 수와 함께 현재 검색 위치를 표시합니다! 그리드의 `lastSearchInfo` 속성을 사용하여 이것을 실행할 수 있습니다. 이 속성은 **find** 메소드를 사용할 때 자동으로 업데이트됩니다. -- `@@igObjectRef.lastSearchInfo.matchInfoCache.length` 값은 총 결과 수입니다. +- `@@igObjectRef.lastSearchInfo.matchCount` 값은 총 결과 수입니다. - `@@igObjectRef.lastSearchInfo.activeMatchIndex` 값은 현재 검색(일치)의 인덱스 위치입니다. ```html -
- - {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchInfoCache.length }} results +
+ + {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchCount }} results - + No results
@@ -294,11 +294,11 @@ public clearSearch() { -
- - {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchInfoCache.length }} results +
+ + {{ @@igObjectRef.lastSearchInfo.activeMatchIndex + 1 }} of {{ @@igObjectRef.lastSearchInfo.matchCount }} results - + No results