Skip to content

Commit f9d76dc

Browse files
committed
docs(item-divider): update angular to standalone
1 parent c5926f0 commit f9d76dc

File tree

12 files changed

+234
-8
lines changed

12 files changed

+234
-8
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
```html
2+
<ion-list>
3+
<ion-item-group>
4+
<ion-item-divider>
5+
<ion-label> Section A </ion-label>
6+
</ion-item-divider>
7+
8+
<ion-item>
9+
<ion-label>A1</ion-label>
10+
</ion-item>
11+
<ion-item>
12+
<ion-label>A2</ion-label>
13+
</ion-item>
14+
<ion-item lines="none">
15+
<ion-label>A3</ion-label>
16+
</ion-item>
17+
</ion-item-group>
18+
19+
<ion-item-group>
20+
<ion-item-divider>
21+
<ion-label> Section B </ion-label>
22+
</ion-item-divider>
23+
24+
<ion-item>
25+
<ion-label>B1</ion-label>
26+
</ion-item>
27+
<ion-item>
28+
<ion-label>B2</ion-label>
29+
</ion-item>
30+
<ion-item lines="none">
31+
<ion-label>B3</ion-label>
32+
</ion-item>
33+
</ion-item-group>
34+
</ion-list>
35+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```ts
2+
import { Component } from '@angular/core';
3+
import { IonItem, IonItemDivider, IonItemGroup, IonLabel, IonList } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
imports: [IonItem, IonItemDivider, IonItemGroup, IonLabel, IonList],
9+
})
10+
export class ExampleComponent {}
11+
```

static/usage/v7/item-divider/basic/index.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,23 @@ import Playground from '@site/src/components/global/Playground';
33
import javascript from './javascript.md';
44
import react from './react.md';
55
import vue from './vue.md';
6-
import angular from './angular.md';
6+
7+
import angular_example_component_html from './angular/example_component_html.md';
8+
import angular_example_component_ts from './angular/example_component_ts.md';
79

810
<Playground
911
version="7"
10-
code={{ javascript, react, vue, angular }}
12+
code={{
13+
javascript,
14+
react,
15+
vue,
16+
angular: {
17+
files: {
18+
'src/app/example.component.html': angular_example_component_html,
19+
'src/app/example.component.ts': angular_example_component_ts,
20+
},
21+
},
22+
}}
1123
src="usage/v7/item-divider/basic/demo.html"
1224
size="medium"
1325
/>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
```html
2+
<ion-item-divider>
3+
<ion-label>Default</ion-label>
4+
</ion-item-divider>
5+
<ion-item-divider color="primary">
6+
<ion-label>Primary</ion-label>
7+
</ion-item-divider>
8+
<ion-item-divider color="secondary">
9+
<ion-label>Secondary</ion-label>
10+
</ion-item-divider>
11+
<ion-item-divider color="tertiary">
12+
<ion-label>Tertiary</ion-label>
13+
</ion-item-divider>
14+
<ion-item-divider color="success">
15+
<ion-label>Success</ion-label>
16+
</ion-item-divider>
17+
<ion-item-divider color="warning">
18+
<ion-label>Warning</ion-label>
19+
</ion-item-divider>
20+
<ion-item-divider color="danger">
21+
<ion-label>Danger</ion-label>
22+
</ion-item-divider>
23+
<ion-item-divider color="light">
24+
<ion-label>Light</ion-label>
25+
</ion-item-divider>
26+
<ion-item-divider color="medium">
27+
<ion-label>Medium</ion-label>
28+
</ion-item-divider>
29+
<ion-item-divider color="dark">
30+
<ion-label>Dark</ion-label>
31+
</ion-item-divider>
32+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```ts
2+
import { Component } from '@angular/core';
3+
import { IonItemDivider, IonLabel } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
imports: [IonItemDivider, IonLabel],
9+
})
10+
export class ExampleComponent {}
11+
```

static/usage/v7/item-divider/theming/colors/index.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,23 @@ import Playground from '@site/src/components/global/Playground';
33
import javascript from './javascript.md';
44
import react from './react.md';
55
import vue from './vue.md';
6-
import angular from './angular.md';
6+
7+
import angular_example_component_html from './angular/example_component_html.md';
8+
import angular_example_component_ts from './angular/example_component_ts.md';
79

810
<Playground
911
version="7"
10-
code={{ javascript, react, vue, angular }}
12+
code={{
13+
javascript,
14+
react,
15+
vue,
16+
angular: {
17+
files: {
18+
'src/app/example.component.html': angular_example_component_html,
19+
'src/app/example.component.ts': angular_example_component_ts,
20+
},
21+
},
22+
}}
1123
src="usage/v7/item-divider/theming/colors/demo.html"
1224
size="medium"
1325
/>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
```html
2+
<ion-list>
3+
<ion-item-group>
4+
<ion-item-divider>
5+
<ion-label> Section A </ion-label>
6+
</ion-item-divider>
7+
8+
<ion-item>
9+
<ion-label>A1</ion-label>
10+
</ion-item>
11+
<ion-item>
12+
<ion-label>A2</ion-label>
13+
</ion-item>
14+
<ion-item lines="none">
15+
<ion-label>A3</ion-label>
16+
</ion-item>
17+
</ion-item-group>
18+
19+
<ion-item-group>
20+
<ion-item-divider>
21+
<ion-label> Section B </ion-label>
22+
</ion-item-divider>
23+
24+
<ion-item>
25+
<ion-label>B1</ion-label>
26+
</ion-item>
27+
<ion-item>
28+
<ion-label>B2</ion-label>
29+
</ion-item>
30+
<ion-item lines="none">
31+
<ion-label>B3</ion-label>
32+
</ion-item>
33+
</ion-item-group>
34+
</ion-list>
35+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```ts
2+
import { Component } from '@angular/core';
3+
import { IonItem, IonItemDivider, IonItemGroup, IonLabel, IonList } from '@ionic/angular/standalone';
4+
5+
@Component({
6+
selector: 'app-example',
7+
templateUrl: 'example.component.html',
8+
imports: [IonItem, IonItemDivider, IonItemGroup, IonLabel, IonList],
9+
})
10+
export class ExampleComponent {}
11+
```

static/usage/v8/item-divider/basic/index.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,23 @@ import Playground from '@site/src/components/global/Playground';
33
import javascript from './javascript.md';
44
import react from './react.md';
55
import vue from './vue.md';
6-
import angular from './angular.md';
6+
7+
import angular_example_component_html from './angular/example_component_html.md';
8+
import angular_example_component_ts from './angular/example_component_ts.md';
79

810
<Playground
911
version="8"
10-
code={{ javascript, react, vue, angular }}
12+
code={{
13+
javascript,
14+
react,
15+
vue,
16+
angular: {
17+
files: {
18+
'src/app/example.component.html': angular_example_component_html,
19+
'src/app/example.component.ts': angular_example_component_ts,
20+
},
21+
},
22+
}}
1123
src="usage/v8/item-divider/basic/demo.html"
1224
size="medium"
1325
/>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
```html
2+
<ion-item-divider>
3+
<ion-label>Default</ion-label>
4+
</ion-item-divider>
5+
<ion-item-divider color="primary">
6+
<ion-label>Primary</ion-label>
7+
</ion-item-divider>
8+
<ion-item-divider color="secondary">
9+
<ion-label>Secondary</ion-label>
10+
</ion-item-divider>
11+
<ion-item-divider color="tertiary">
12+
<ion-label>Tertiary</ion-label>
13+
</ion-item-divider>
14+
<ion-item-divider color="success">
15+
<ion-label>Success</ion-label>
16+
</ion-item-divider>
17+
<ion-item-divider color="warning">
18+
<ion-label>Warning</ion-label>
19+
</ion-item-divider>
20+
<ion-item-divider color="danger">
21+
<ion-label>Danger</ion-label>
22+
</ion-item-divider>
23+
<ion-item-divider color="light">
24+
<ion-label>Light</ion-label>
25+
</ion-item-divider>
26+
<ion-item-divider color="medium">
27+
<ion-label>Medium</ion-label>
28+
</ion-item-divider>
29+
<ion-item-divider color="dark">
30+
<ion-label>Dark</ion-label>
31+
</ion-item-divider>
32+
```

0 commit comments

Comments
 (0)