Skip to content

Commit cba8988

Browse files
authored
Merge pull request #5993 from IgniteUI/localization-2024-11-06
[Localization] Updating Carousel topic - master
2 parents abb8071 + 90a087c commit cba8988

File tree

3 files changed

+32
-76
lines changed

3 files changed

+32
-76
lines changed

jp/components/carousel.md

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,7 @@ export class HomeComponent {
122122

123123
デフォルトでは、Angular のカルーセルの **[`loop`]({environment:angularApiUrl}/classes/igxcarouselcomponent.html#loop)** 入力プロパティは `true` に設定されています (ループは、Next 動作でナビゲートするときに最初のスライドが最後のスライドの後に来るか、Previous 動作を使用して最後のスライドが最初のスライドの後に来るときに起こります)。ループ動作を無効にするには、`loop` 入力の値を `false` に設定します。
124124

125-
各スライド インデックスを追跡するために、カルーセルには、デフォルトでカルーセルの `bottom` に配置されるインジケーターがあります。この動作を変更するには、[indicatorsOrientation]({environment:angularApiUrl}/classes/igxcarouselcomponent.html#indicatorsOrientation) プロパティを使用して、`top` に割り当てる必要があります。空のテンプレートを追加すると、インジケーターを無効にできます。
126-
127-
カルーセル テンプレートは以下のようになります。
128-
129-
```html
130-
<div class="carousel-container">
131-
<igx-carousel #carousel [loop]="false">
132-
...
133-
<!-- Adding an empty template to disable carousel's indicators -->
134-
<ng-template igxCarouselIndicator></ng-template>
135-
</igx-carousel>
136-
</div>
137-
```
125+
各スライド インデックスを追跡するために、カルーセルには、デフォルトでカルーセルの `bottom` に配置されるインジケーターがあります。この動作を変更するには、[indicatorsOrientation]({environment:angularApiUrl}/classes/igxcarouselcomponent.html#indicatorsOrientation) プロパティを使用して、`top` に割り当てる必要があります。インジケーターは、`indicators` 入力プロパティを `false` に設定することで無効にできます。
138126

139127
### カスタム インジケーター
140128
<div class="divider--half"></div>
@@ -280,12 +268,13 @@ Carousel [アニメーション](carousel.md#angular-carousel-のアニメーシ
280268
### キーボード ナビゲーション
281269
<div class="divider--half"></div>
282270

283-
* **次へ**/**前へ**のスライドに移動するには、それぞれ以下を使用する必要があります。
284-
* `右矢印` キー - 次のスライド
285-
* `左矢印` キー - 前のスライド
286-
* **最後**/**最初**のスライドに移動するには、それぞれ以下を使用する必要があります。
287-
* `End` キー - 最後のスライド
288-
* `Home` キー - 最初のスライド
271+
* ナビゲーション ボタン
272+
* `Space`/`Enter` キー - 次のスライド/前のスライドに移動します。
273+
* インジケーター
274+
* `左矢印` キー - 前のスライド (右から左モードでは次) に移動します。
275+
* `右矢印` キー - 次のスライド (右から左モードでは前へ) に移動します。
276+
* `Home` キー - 最初のスライド (右から左モードでは最後) に移動します。
277+
* `End` キー - 最後のスライド (右から左モードでは最初) に移動します。
289278

290279
### 自動的なトランジション
291280
<div class="divider--half"></div>
@@ -313,14 +302,10 @@ Carousel [アニメーション](carousel.md#angular-carousel-のアニメーシ
313302
```html
314303
...
315304
<div class="carousel-wrapper">
316-
<igx-carousel [navigation]="false" [pause]="false" animationType="fade" [interval]="2000" [gesturesSupport]="false">
317-
<div class="slides-wrapper">
318-
<igx-slide *ngFor="let item of slides">
319-
<!-- Slides content goes here -->
320-
</igx-slide>
321-
</div>
322-
<!-- Adding an empty template to disable carousel's indicators -->
323-
<ng-template igxCarouselIndicator></ng-template>
305+
<igx-carousel [navigation]="false" [indicators]="false" [pause]="false" animationType="fade" [interval]="2000" [gesturesSupport]="false">
306+
<igx-slide *ngFor="let item of slides">
307+
<!-- Slides content goes here -->
308+
</igx-slide>
324309
</igx-carousel>
325310
</div>
326311
...

jp/components/snackbar.md

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _keywords: Angular Snackbar コンポーネント, Angular Snackbar コントロ
55
_language: ja
66
---
77
# Angular Snackbar (スナックバー) コンポーネントの概要
8-
<p class="highlight">Ignite UI for Angular Snackbar コンポーネントは、アクションを含むことができる単一行のメッセージで操作のフィードバックを提供します。SnackBar メッセージがその他の画面要素の上に表示され、画面の中央下に配置されます。</p>
8+
<p class="highlight">Ignite UI for Angular Snackbar コンポーネントは、アクションを含むことができる単一行のメッセージで操作のフィードバックを提供します。Snackbar メッセージがその他の画面要素の上に表示され、画面の中央下に配置されます。</p>
99
<div class="divider"></div>
1010

1111
## Angular Snackbar の例
@@ -255,31 +255,29 @@ public restore() {
255255
iframe-src="{environment:demosBaseUrl}/notifications/snackbar-sample-4" >
256256
</code-view>
257257

258-
### オーバーレイ設定
259-
[`IgxSnackbarComponent`]({environment:angularApiUrl}/classes/igxsnackbarcomponent.html) は、[オーバーレイ設定]({environment:angularApiUrl}/interfaces/overlaysettings.html)を使用してコンテナーの位置を制御します。デフォルト設定は、カスタム オーバーレイ設定を定義し、それらをスナックバーの `open()` メソッドに渡すことで変更できます
258+
### 配置
259+
[`positionSettings`]({environment:angularApiUrl}/classes/igxsnackbarcomponent.html#positionSettings) プロパティを使用すると、Snackbar の表示位置を構成します。デフォルトで、ページの下に表示されます。以下のサンプルで、通知が上位置に表示されます
260260

261-
```typescript
262-
public customSettings: OverlaySettings = {
263-
positionStrategy: new GlobalPositionStrategy(
264-
{
265-
horizontalDirection: HorizontalAlignment.Left,
266-
verticalDirection: VerticalAlignment.Top
267-
}),
268-
modal: true,
269-
closeOnOutsideClick: true,
270-
};
271-
272-
snackbar.open(customSettings);
261+
```html
262+
<!--sample.component.html-->
263+
<button igxButton="contained" (click)="open(snackbar)">Show notification on top</button>
264+
<igx-snackbar #snackbar>Notification displayed</igx-snackbar>
273265
```
274266

275-
ユーザーは、スナックバーが表示されたときに DOM に配置される特定のアウトレットを提供することもできます。
276-
277-
```html
278-
<igx-snackbar [outlet]="igxBodyOverlayOutlet"></igx-snackbar>
279-
<div #igxBodyOverlayOutlet igxOverlayOutlet></div>
267+
```typescript
268+
// sample.component.ts
269+
import { VerticalAlignment, HorizontalAlignment } from 'igniteui-angular';
270+
// import { VerticalAlignment, HorizontalAlignment } from '@infragistics/igniteui-angular'; for licensed package
271+
...
272+
public open(snackbar) {
273+
snackbar.positionSettings.verticalDirection = VerticalAlignment.Top;
274+
snackbar.positionSettings.horizontalDirection = HorizontalAlignment.Right;
275+
snackbar.open();
276+
}
277+
...
280278
```
281-
## スタイル設定
282279

280+
## スタイル設定
283281
スナックバーのスタイル設定を始めるには、すべてのテーマ関数とコンポーネント ミックスインが存在する index ファイルをインポートする必要があります。
284282

285283
```scss

jp/components/toast.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ public showMessage() {
111111
}
112112
```
113113

114-
> [!WARNING]
115-
> igx-toast コンポーネントの `show` メソッドと `hide` メソッドは非推奨になりました。代わりに `open``close` を使用する必要があります。
116-
117114
##
118115

119116
### 非表示/自動的に隠す
@@ -179,30 +176,6 @@ public open(toast) {
179176
iframe-src="{environment:demosBaseUrl}/notifications/toast-sample-5" >
180177
</code-view>
181178

182-
### オーバーレイ設定
183-
[`IgxToastComponent`]({environment:angularApiUrl}/classes/igxtoastcomponent.html) は、[オーバーレイ設定]({environment:angularApiUrl}/interfaces/overlaysettings.html)を使用してコンテナーの位置を制御します。デフォルト設定は、カスタム オーバーレイ設定を定義し、それらをトーストの `open()` メソッドに渡すことで変更できます。
184-
185-
```typescript
186-
public customSettings: OverlaySettings = {
187-
positionStrategy: new GlobalPositionStrategy(
188-
{
189-
horizontalDirection: HorizontalAlignment.Left,
190-
verticalDirection: VerticalAlignment.Top
191-
}),
192-
modal: true,
193-
closeOnOutsideClick: true,
194-
};
195-
196-
toast.open(customSettings);
197-
```
198-
199-
ユーザーは、トーストが表示されたときに DOM に配置される特定のアウトレットを提供することもできます。
200-
201-
```html
202-
<igx-toast [outlet]="igxBodyOverlayOutlet"></igx-toast>
203-
<div #igxBodyOverlayOutlet igxOverlayOutlet></div>
204-
```
205-
206179
<div class="divider--half"></div>
207180

208181
## スタイル設定
@@ -216,7 +189,7 @@ Toast のスタイル設定を始めるには、すべてのテーマ関数と
216189
// @import '~igniteui-angular/lib/core/styles/themes/index';
217190
```
218191

219-
最も簡単な方法は、[`toast-theme`]({environment:sassApiUrl}/index.html#function-toast-theme) を拡張する新しいテーマを作成し、`$shadow``$background``$text-color``$border-radius` パラメーターを受け取る方法です。
192+
最も簡単な方法は、[`toast-theme`]({environment:sassApiUrl}/index.html#function-toast-theme) を拡張する新しいテーマを作成し、`$background``$text-color``$border-radius` パラメーターを受け取る方法です。
220193

221194
```scss
222195
$custom-toast-theme: toast-theme(

0 commit comments

Comments
 (0)