Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions static/usage/v7/toast/buttons/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonToast } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonToast],
})
export class ExampleComponent {
public toastButtons = [
Expand All @@ -23,8 +26,8 @@ export class ExampleComponent {
},
];

setRoleMessage(ev) {
const { role } = ev.detail;
setRoleMessage(event: CustomEvent) {
const { role } = event.detail;
console.log(`Dismissed with role: ${role}`);
}
}
Expand Down
24 changes: 24 additions & 0 deletions static/usage/v7/toast/icon/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonToast } from '@ionic/angular/standalone';

import { addIcons } from 'ionicons';
import { globe } from 'ionicons/icons';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonToast],
})
export class ExampleComponent {
constructor() {
/**
* Any icons you want to use in your application
* can be registered in app.component.ts and then
* referenced by name anywhere in your application.
*/
addIcons({ globe });
}
}
```
11 changes: 9 additions & 2 deletions static/usage/v7/toast/icon/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="7"
Expand All @@ -12,7 +14,12 @@ import angular from './angular.md';
javascript,
react,
vue,
angular,
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
src="usage/v7/toast/icon/demo.html"
/>
12 changes: 12 additions & 0 deletions static/usage/v7/toast/inline/basic/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonContent, IonHeader, IonTitle, IonToast, IonToolbar } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonHeader, IonTitle, IonToast, IonToolbar],
})
export class ExampleComponent {}
```
11 changes: 9 additions & 2 deletions static/usage/v7/toast/inline/basic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@ import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="7"
code={{
javascript,
react,
vue,
angular,
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
src="usage/v7/toast/inline/basic/demo.html"
devicePreview
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonContent, IonHeader, IonTitle, IonToast, IonToolbar } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonHeader, IonTitle, IonToast, IonToolbar],
})
export class ExampleComponent {
isToastOpen = false;
Expand Down
3 changes: 3 additions & 0 deletions static/usage/v7/toast/layout/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonToast } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonToast],
})
export class ExampleComponent {
toastButtons = [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonContent, IonFooter, IonHeader, IonTitle, IonToast, IonToolbar } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonFooter, IonHeader, IonTitle, IonToast, IonToolbar],
})
export class ExampleComponent {}
```
11 changes: 9 additions & 2 deletions static/usage/v7/toast/position-anchor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@ import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="7"
code={{
javascript,
react,
vue,
angular,
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
src="usage/v7/toast/position-anchor/demo.html"
devicePreview={true}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
```ts
import { Component } from '@angular/core';
import { ToastController } from '@ionic/angular';
import { IonButton, ToastController } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton],
})
export class ExampleComponent {
constructor(private toastController: ToastController) {}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonContent, IonFooter, IonTitle, IonToast, IonToolbar } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonFooter, IonTitle, IonToast, IonToolbar],
})
export class ExampleComponent {}
```
11 changes: 9 additions & 2 deletions static/usage/v7/toast/swipe-gesture/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@ import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="7"
code={{
javascript,
react,
vue,
angular,
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
src="usage/v7/toast/swipe-gesture/demo.html"
devicePreview={true}
Expand Down
3 changes: 3 additions & 0 deletions static/usage/v7/toast/theming/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonToast } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonToast],
})
export class ExampleComponent {
public toastButtons = [
Expand Down
7 changes: 5 additions & 2 deletions static/usage/v8/toast/buttons/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonToast } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonToast],
})
export class ExampleComponent {
public toastButtons = [
Expand All @@ -23,8 +26,8 @@ export class ExampleComponent {
},
];

setRoleMessage(ev) {
const { role } = ev.detail;
setRoleMessage(event: CustomEvent) {
const { role } = event.detail;
console.log(`Dismissed with role: ${role}`);
}
}
Expand Down
24 changes: 24 additions & 0 deletions static/usage/v8/toast/icon/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonToast } from '@ionic/angular/standalone';

import { addIcons } from 'ionicons';
import { globe } from 'ionicons/icons';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonToast],
})
export class ExampleComponent {
constructor() {
/**
* Any icons you want to use in your application
* can be registered in app.component.ts and then
* referenced by name anywhere in your application.
*/
addIcons({ globe });
}
}
```
11 changes: 9 additions & 2 deletions static/usage/v8/toast/icon/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="8"
Expand All @@ -12,7 +14,12 @@ import angular from './angular.md';
javascript,
react,
vue,
angular,
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
src="usage/v8/toast/icon/demo.html"
/>
12 changes: 12 additions & 0 deletions static/usage/v8/toast/inline/basic/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonContent, IonHeader, IonTitle, IonToast, IonToolbar } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonHeader, IonTitle, IonToast, IonToolbar],
})
export class ExampleComponent {}
```
11 changes: 9 additions & 2 deletions static/usage/v8/toast/inline/basic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@ import Playground from '@site/src/components/global/Playground';
import javascript from './javascript.md';
import react from './react.md';
import vue from './vue.md';
import angular from './angular.md';

import angular_example_component_html from './angular/example_component_html.md';
import angular_example_component_ts from './angular/example_component_ts.md';

<Playground
version="8"
code={{
javascript,
react,
vue,
angular,
angular: {
files: {
'src/app/example.component.html': angular_example_component_html,
'src/app/example.component.ts': angular_example_component_ts,
},
},
}}
src="usage/v8/toast/inline/basic/demo.html"
devicePreview
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonContent, IonHeader, IonTitle, IonToast, IonToolbar } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonHeader, IonTitle, IonToast, IonToolbar],
})
export class ExampleComponent {
isToastOpen = false;
Expand Down
3 changes: 3 additions & 0 deletions static/usage/v8/toast/layout/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonToast } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonToast],
})
export class ExampleComponent {
toastButtons = [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonButton, IonContent, IonFooter, IonHeader, IonTitle, IonToast, IonToolbar } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton, IonContent, IonFooter, IonHeader, IonTitle, IonToast, IonToolbar],
})
export class ExampleComponent {}
```
Loading