Skip to content

Commit b27c631

Browse files
authored
Merge pull request #6030 from IgniteUI/localization-2025-01-14
[JA] SSR Rendering topic update, other fixes
2 parents 36e4c41 + 120ffb5 commit b27c631

File tree

5 files changed

+111
-173
lines changed

5 files changed

+111
-173
lines changed

jp/components/chip.md

Lines changed: 70 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ _language: ja
77

88
# Angular Chip (チップ) コンポーネントの概要
99

10-
<p class="highlight">[Angular Chip コンポーネント]({environment:angularApiUrl}/classes/igxchipcomponent.html)は、楕円形のコンテナーに情報を表示する視覚的要素です。コンポーネントにはテンプレート化、削除、選択などのさまざまなプロパティがあります。複数のチップの順序を変更し、チップ領域をコンテナーとして視覚的に接続できます。</p>
10+
<p class="highlight">Angular Chip コンポーネントは、楕円形のコンテナーに情報を表示する視覚的要素です。コンポーネントにはテンプレート化、削除、選択などのさまざまなプロパティがあります。複数のチップの順序を変更し、チップ領域をコンテナーとして視覚的に接続できます。</p>
1111

1212
## Angular Chip の例
1313

14-
1514
<code-view style="height: 100px; padding-top: 10px"
1615
data-demos-base-url="{environment:demosBaseUrl}"
1716
iframe-src="{environment:demosBaseUrl}/data-display/chip-simple" alt="Angular Chip の例">
@@ -129,78 +128,13 @@ public chipRemoved(event: IBaseChipEventArgs) {
129128

130129
```html
131130
<igx-chip *ngFor="let chip of chipList" [id]="chip.id" [draggable]="true">
132-
<igx-icon igxPrefix>{{chip.icon}}</igx-icon>
133-
{chip.text}}
134-
</igx-chip>
135-
```
136-
137-
>[!NOTE]
138-
>チップの順序をソートするには、[`IgxChipsAreaComponent`]({environment:angularApiUrl}/classes/igxchipsareacomponent.html) を使用してイベントを処理する必要があります。
139-
140-
<div class="divider"></div>
141-
142-
**デモ サンプルを作成するには、上記の機能を使用します。**
143-
144-
```html
145-
<igx-chip
146-
*ngFor="let chip of chipList"
147-
[id]="chip.id"
148-
[selectable]="true"
149-
[removable]="true"
150-
(remove)="chipRemoved($event)"
151-
>
152131
<igx-icon igxPrefix>{{chip.icon}}</igx-icon>
153132
{{chip.text}}
154133
</igx-chip>
155134
```
156135

157-
次に、`chipList`[`remove`]({environment:angularApiUrl}/classes/igxchipcomponent.html#remove) イベントを処理する関数を追加します。
158-
159-
```ts
160-
import { IBaseChipEventArgs } from 'igniteui-angular';
161-
// import { IBaseChipEventArgs } from '@infragistics/igniteui-angular'; for licensed package
162-
...
163-
public chipList = [
164-
{
165-
text: 'Country',
166-
id: '1',
167-
icon: 'place'
168-
},
169-
{
170-
text: 'City',
171-
id: '2',
172-
icon: 'location_city'
173-
},
174-
{
175-
text: 'Town',
176-
id: '3',
177-
icon: 'store'
178-
},
179-
{
180-
text: 'First Name',
181-
id: '4',
182-
icon: 'person_pin'
183-
}
184-
];
185-
186-
private changeDetectionRef: any;
187-
188-
public chipRemoved(event: IBaseChipEventArgs) {
189-
this.chipList = this.chipList.filter((item) => {
190-
return item.id !== event.owner.id;
191-
});
192-
this.changeDetectionRef.detectChanges();
193-
}
194-
```
195-
196-
すべて適切に設定できると、ブラウザーで以下が表示されます。
197-
198-
199-
<code-view style="height: 100px; padding-top: 10px"
200-
data-demos-base-url="{environment:demosBaseUrl}"
201-
iframe-src="{environment:demosBaseUrl}/data-display/chip-simple" >
202-
</code-view>
203-
136+
>[!NOTE]
137+
>チップの順序をソートするには、[`IgxChipsAreaComponent`]({environment:angularApiUrl}/classes/igxchipsareacomponent.html) を使用してイベントを処理する必要があります。詳細については、[`Chip のソート セクション`](chip.md#chip-のソート)を参照してください。
204138
205139
### Chip テンプレート
206140

@@ -267,6 +201,72 @@ public chipRemoved(event: IBaseChipEventArgs) {
267201
</ng-template>
268202
```
269203

204+
<div class="divider"></div>
205+
206+
### デモ
207+
208+
**デモ サンプルを作成するには、上記の機能を使用します。**
209+
210+
```html
211+
<igx-chip
212+
*ngFor="let chip of chipList"
213+
[id]="chip.id"
214+
[selectable]="true"
215+
[removable]="true"
216+
(remove)="chipRemoved($event)"
217+
>
218+
<igx-icon igxPrefix>{{chip.icon}}</igx-icon>
219+
{{chip.text}}
220+
</igx-chip>
221+
```
222+
223+
次に、`chipList`[`remove`]({environment:angularApiUrl}/classes/igxchipcomponent.html#remove) イベントを処理する関数を追加します。
224+
225+
```ts
226+
import { IBaseChipEventArgs } from 'igniteui-angular';
227+
// import { IBaseChipEventArgs } from '@infragistics/igniteui-angular'; for licensed package
228+
...
229+
public chipList = [
230+
{
231+
text: 'Country',
232+
id: '1',
233+
icon: 'place'
234+
},
235+
{
236+
text: 'City',
237+
id: '2',
238+
icon: 'location_city'
239+
},
240+
{
241+
text: 'Town',
242+
id: '3',
243+
icon: 'store'
244+
},
245+
{
246+
text: 'First Name',
247+
id: '4',
248+
icon: 'person_pin'
249+
}
250+
];
251+
252+
private changeDetectionRef: any;
253+
254+
public chipRemoved(event: IBaseChipEventArgs) {
255+
this.chipList = this.chipList.filter((item) => {
256+
return item.id !== event.owner.id;
257+
});
258+
this.changeDetectionRef.detectChanges();
259+
}
260+
```
261+
262+
すべて適切に設定できると、ブラウザーで以下が表示されます。
263+
264+
265+
<code-view style="height: 100px; padding-top: 10px"
266+
data-demos-base-url="{environment:demosBaseUrl}"
267+
iframe-src="{environment:demosBaseUrl}/data-display/chip-simple" >
268+
</code-view>
269+
270270
## Chip Area
271271

272272
[`IgxChipsAreaComponent`]({environment:angularApiUrl}/classes/igxchipsareacomponent.html) はチップの間の操作 (ドラッグ、選択、ナビゲーションなど) が必要となる複雑なシナリオの処理で使用されます。
@@ -433,6 +433,7 @@ public chipsOrderChanged(event: IChipsAreaReorderEventArgs) {
433433
// 重要: Ignite UI for Angular 13 より前のバージョンは、次を使用してください。
434434
// @import '~igniteui-angular/lib/core/styles/themes/index';
435435
```
436+
436437
最も簡単な方法は、[`chip-theme`]({environment:sassApiUrl}/index.html#function-chip-theme)を拡張する新しいテーマを作成し、チップの項目をスタイル設定するいくつかのパラメーターを受け取る方法です。
437438

438439
```scss

jp/components/general/data-analysis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ npm install @infragistics/igniteui-angular igniteui-angular-core igniteui-angula
232232

233233
* [Angular Universal ガイド (英語)](https://angular.io/guide/universal)
234234
* [Ignite UI スタート キット (英語)](https://github.com/IgniteUI/ng-universal-example)
235-
* [サーバー側レンダリング用語](https://developers.google.com/web/updates/2019/02/rendering-on-the-web)
235+
* [サーバー サイド レンダリング用語](https://web.dev/articles/rendering-on-the-web?hl=ja)
236236
* [Ignite UI を使用した作業の開始](getting-started.md)
237237
* [Ignite UI CLI ガイド](cli/step-by-step-guide.md)
238238
* [Ignite UI for Angular Schematics ガイド](cli/step-by-step-guide-using-angular-schematics.md)

jp/components/general/how-to/how-to-use-standalone-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ import { IgxGridModule } from 'igniteui-angular';
103103

104104
- [スタンドアロン コンポーネント](https://angular.io/guide/standalone-components)
105105
- [Ignite UI を使用した作業の開始](../getting-started.md)
106-
- [Angular のサーバー側レンダリング](../ssr-rendering.md)
106+
- [Angular のサーバー サイド レンダリング](../ssr-rendering.md)
107107

108108
コミュニティに参加して新しいアイデアをご提案ください。
109109

0 commit comments

Comments
 (0)