Skip to content

Commit 93e56f3

Browse files
github-actions[bot]CopilotjsakamotoCopilotChronosSF
authored
[jp-sync] Sync JP badge docs: update Badge Value and Icon section (#6469)
* docs(badge/jp): sync Badge Value and Icon section with EN updates Adds the missing 'バッジの値とアイコン' section to jp/components/badge.md, mirroring the updated content from en/components/badge.md (PR #6466). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * docs(badge/jp): refine wording for content projection description * docs(badge/jp): refine value and icon section, normalize "Material" terminology Co-authored-by: Copilot <copilot@github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: jsakamoto <junichi.jp@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ChronosSF <2188411+ChronosSF@users.noreply.github.com> Co-authored-by: jsakamotoIGJP <jsakamoto@infragistics.com> Co-authored-by: Copilot <copilot@github.com>
1 parent eceb169 commit 93e56f3

1 file changed

Lines changed: 18 additions & 9 deletions

File tree

jp/components/badge.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class HomeComponent {}
6767
```
6868

6969
> [!NOTE]
70-
> このコンポーネントはマテリアル アイコンを使用します。`index.html` に次のリンクを追加してください: `<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">`
70+
> このコンポーネントは Material アイコンを使用します。`index.html` に次のリンクを追加してください: `<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">`
7171
7272
Ignite UI for Angular Badge モジュールまたはコンポーネントをインポートしたので、`igx-badge` コンポーネントの基本構成を開始できます。
7373

@@ -144,14 +144,16 @@ igx-badge {
144144

145145
### バッジの値とアイコン
146146

147-
バッジ内にテキストまたは数値カウントを表示するには、`[value]` 入力を使用します。コンテンツを直接埋め込む方法よりも、この方法が推奨されます。
147+
バッジ内にテキストまたは数値カウントを表示するには、`[value]` 入力を使用します。
148148

149149
```html
150-
<!-- 推奨 -->
151150
<igx-badge [value]="model.value"></igx-badge>
151+
```
152+
153+
バッジ内にアイコンを表示するには、`[icon]` 入力を使用します。
152154

153-
<!-- 非推奨 -->
154-
<igx-badge>{{ model.value }}</igx-badge>
155+
```html
156+
<igx-badge icon="check" type="success"></igx-badge>
155157
```
156158

157159
`[icon]``[value]` の両方が設定されている場合、バッジは両方を同時に表示します。
@@ -161,15 +163,22 @@ igx-badge {
161163
<igx-badge icon="check" value="5" type="success"></igx-badge>
162164
```
163165

164-
アイコンなしで数値のみを表示するには、`[icon]` を設定しないようにしてください
166+
または、コンテンツを直接埋め込むこともできます
165167

166168
```html
167-
<igx-badge [value]="unreadCount" type="info"></igx-badge>
169+
<igx-badge>{{ model.value }}</igx-badge>
170+
171+
<!--
172+
アイコンとテキストの両方を埋め込む場合は、正しいパディングを維持するためにテキストをラップしてください。 -->
173+
<igx-badge>
174+
<igx-icon>bluetooth</igx-icon>
175+
<span>Bluetooth</span>
176+
</igx-badge>
168177
```
169178

170179
### バッジのアイコン
171180

172-
`igx-badge` コンポーネントは、マテリアル アイコンに加えて[マテリアル アイコン拡張](../components/material-icons-extended.md)およびその他のカスタム アイコン セットの使用もサポートしています。マテリアル アイコン拡張セットからバッジ コンポーネントにアイコンを追加するには、まずそのアイコンを登録する必要があります。
181+
`igx-badge` コンポーネントは、Material アイコンに加えて[Material アイコン拡張](../components/material-icons-extended.md)およびその他のカスタム アイコン セットの使用もサポートしています。Material アイコン拡張セットからバッジ コンポーネントにアイコンを追加するには、まずそのアイコンを登録する必要があります。
173182

174183
```ts
175184
export class BadgeIconComponent implements OnInit {
@@ -224,7 +233,7 @@ export class AppModule {}
224233
```
225234

226235
>[!NOTE]
227-
>[`igx-badge`]({environment:angularApiUrl}/classes/igxbadgecomponent.html) には、バッジの外観を構成するための [`icon`]({environment:angularApiUrl}/classes/igxbadgecomponent.html#icon)[`value`]({environment:angularApiUrl}/classes/igxbadgecomponent.html#value)、および [`type`]({environment:angularApiUrl}/classes/igxbadgecomponent.html#type) 入力があります。公式の[マテリアル アイコン セット](https://material.io/icons/)から名前を指定して、アイコンを設定できます。バッジタイプは、[`default`]({environment:angularApiUrl}/enums/type.html#default)[`info`]({environment:angularApiUrl}/enums/type.html#info)[`success`]({environment:angularApiUrl}/enums/type.html#success)[`warning`]({environment:angularApiUrl}/enums/type.html#warning)、または [`error`]({environment:angularApiUrl}/enums/type.html#error) のいずれかに設定できます。その型により、特定の背景の色が適用されます。
236+
>[`igx-badge`]({environment:angularApiUrl}/classes/igxbadgecomponent.html) には、バッジの外観を構成するための [`icon`]({environment:angularApiUrl}/classes/igxbadgecomponent.html#icon)[`value`]({environment:angularApiUrl}/classes/igxbadgecomponent.html#value)、および [`type`]({environment:angularApiUrl}/classes/igxbadgecomponent.html#type) 入力があります。公式の[Material アイコン セット](https://material.io/icons/)から名前を指定して、アイコンを設定できます。バッジタイプは、[`default`]({environment:angularApiUrl}/enums/type.html#default)[`info`]({environment:angularApiUrl}/enums/type.html#info)[`success`]({environment:angularApiUrl}/enums/type.html#success)[`warning`]({environment:angularApiUrl}/enums/type.html#warning)、または [`error`]({environment:angularApiUrl}/enums/type.html#error) のいずれかに設定できます。その型により、特定の背景の色が適用されます。
228237
229238
サンプルでは、[`icon`]({environment:angularApiUrl}/classes/igxbadgecomponent.html#icon)[`type`]({environment:angularApiUrl}/classes/igxbadgecomponent.html#type) が icon と type という名前のモデルプロパティにバインドされています。
230239

0 commit comments

Comments
 (0)