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
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
```ts
import { Component } from '@angular/core';

import { ActionSheetController } from '@ionic/angular';
import { ActionSheetController, IonButton } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton],
})
export class ExampleComponent {
constructor(private actionSheetCtrl: ActionSheetController) {}
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonActionSheet, IonButton],
})
export class ExampleComponent {
isActionSheetOpen = false;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonActionSheet, IonButton],
})
export class ExampleComponent {
public actionSheetButtons = [
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
```ts
import { Component } from '@angular/core';
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';
import type { OverlayEventDetail } from '@ionic/core';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['./example.component.css'],
imports: [IonActionSheet, IonButton],
})
export class ExampleComponent {
public actionSheetButtons = [
Expand DownExpand Up@@ -32,8 +35,8 @@ export class ExampleComponent {

constructor() {}

logResult(ev) {
console.log(JSON.stringify(ev.detail, null, 2));
logResult(event: CustomEvent<OverlayEventDetail<string>>) {
console.log(JSON.stringify(event.detail, null, 2));
}
}
```
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['./example.component.css'],
imports: [IonActionSheet, IonButton],
})
export class ExampleComponent {
public actionSheetButtons = [
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['./example.component.css'],
imports: [IonActionSheet, IonButton],
})
export class ExampleComponent {
public actionSheetButtons = [
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
```ts
import { Component } from '@angular/core';

import { ActionSheetController } from '@ionic/angular';
import { ActionSheetController, IonButton } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonButton],
})
export class ExampleComponent {
constructor(private actionSheetCtrl: ActionSheetController) {}
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonActionSheet, IonButton],
})
export class ExampleComponent {
isActionSheetOpen = false;
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonActionSheet, IonButton],
})
export class ExampleComponent {
public actionSheetButtons = [
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
```ts
import { Component } from '@angular/core';
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';
import type { OverlayEventDetail } from '@ionic/core';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['./example.component.css'],
imports: [IonActionSheet, IonButton],
})
export class ExampleComponent {
public actionSheetButtons = [
Expand DownExpand Up@@ -32,8 +35,8 @@ export class ExampleComponent {

constructor() {}

logResult(ev) {
console.log(JSON.stringify(ev.detail, null, 2));
logResult(event: CustomEvent<OverlayEventDetail<string>>) {
console.log(JSON.stringify(event.detail, null, 2));
}
}
```
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['./example.component.css'],
imports: [IonActionSheet, IonButton],
})
export class ExampleComponent {
public actionSheetButtons = [
Expand Down
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
```ts
import { Component } from '@angular/core';
import { IonActionSheet, IonButton } from '@ionic/angular/standalone';

@Component({
selector: 'app-example',
templateUrl: 'example.component.html',
styleUrls: ['./example.component.css'],
imports: [IonActionSheet, IonButton],
})
export class ExampleComponent {
public actionSheetButtons = [
Expand Down