feat(picker): add ability to use picker inline (#26336)

This commit is contained in:
Liam DeBeasi
2022-11-22 15:33:47 -05:00
committed by GitHub
parent f23fb342b2
commit c0a8501657
17 changed files with 480 additions and 35 deletions

View File

@@ -3,6 +3,7 @@
<ion-button id="open-action-sheet">Open Action Sheet</ion-button>
<ion-button id="open-loading">Open Loading</ion-button>
<ion-button id="open-toast">Open Toast</ion-button>
<ion-button id="open-picker">Open Picker</ion-button>
<ion-alert
trigger="open-alert"
@@ -30,4 +31,10 @@
message="This is a toast message"
[buttons]="['Button']"
></ion-toast>
<ion-picker
trigger="open-picker"
[columns]="pickerColumns"
[buttons]="pickerButtons"
></ion-picker>
</ion-content>

View File

@@ -7,4 +7,25 @@ import { Component } from "@angular/core";
selector: 'app-overlays-inline',
templateUrl: 'overlays-inline.component.html'
})
export class OverlaysInlineComponent {}
export class OverlaysInlineComponent {
public pickerButtons = [{ text: 'Ok' }, { text: 'Cancel', role: 'cancel' }];
public pickerColumns = [
{
name: 'Colors',
options: [
{
text: 'Red',
value: 'red',
},
{
text: 'Blue',
value: 'blue',
},
{
text: 'Green',
value: 'green',
},
],
},
];
}