/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular/test/base/src/app/lazy/popover-inline/popover-inline.component.ts
27 строк
627 B
Brandy Carney
test(angular): add ng19 test app (#30041)
04 дек 2024, 20:02
Не верифицирован
04 дек 2024, 20:02
e101f2e
Код
Авторство
О чём код?
import { Component } from "@angular/core"; import { IonPopover } from "@ionic/angular"; /** * Validates that inline popovers will correctly display * dynamic contents that are updated after the modal is * display. */ @Component({ selector: 'app-popover-inline', templateUrl: 'popover-inline.component.html', standalone: false }) export class PopoverInlineComponent { items: {text: string, disabled?: boolean}[] = []; openPopover(popover: IonPopover) { popover.present(); setTimeout(() => { this.items = [{text: 'A'}, {text: 'B'}, {text: 'C', disabled: true}, {text: 'D'}]; }, 1000); } }