일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- TAILWIND
- 모달
- 앵귤러 애니메이션
- prisma
- 앵귤러 모달
- angular modal
- angular animation
- 검색
- flex-1
- 옵저버블
- Router
- ajax 사용 예시
- Angular Router
- modal
- angular route
- formgroup
- 호버
- mysql if
- route
- egov spring ajax 사용 예시
- 셀렉트박스 커스텀
- 아이오닉 스크롤 이벤트
- Oracle LISTAGG 사용 예시
- scroll
- ApexChart
- angular button
- Ionic modal
- 스크롤 이벤트
- summary
- 스크롤 이벤트 감지
- Today
- Total
목록modal (6)
깜놀하는 해므찌로
delete() { const items = localStorage.getItem('orderInfos'); let orderInfos: OrderInfo[] = []; if (items) { orderInfos = JSON.parse(items); const index = orderInfos.findIndex( (orderInfo: OrderInfo) => orderInfo.id === this.orderInfo.id ); orderInfos.slice(index, 1); localStorage.setItem('orderInfos', JSON.stringify(orderInfos)); } this.modalController.dismiss(null, 'confirm'); } 1. dismiss 할 시 ..
closeModal(){ this.modalController.dismiss({ dismissed: true, data: 'ㅋㅋ', }); } 1. 모달 컴포넌트 : 모달 종료 시 데이터 ''ㅋㅋ" 를 전달해보겠습니다. 2. data : 라는 변수명은 데이터를 받을 컴포넌트의 변수명과 일치해야 합니다. async openModal() { // modal 생성 시점 const modal = await this.modalController.create({ component: UpdateAdminModal, componentProps: { admin: this.admin, }, }); modal.onDidDismiss().then((res: any) => { // modal 닫히는 시점 console.log(..
ionic generate page modal 1. CLI page 생성 import { Component, OnInit, Input } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { ModalController } from '@ionic/angular'; @Component({ selector: 'app-modal', templateUrl: './modal.page.html', styleUrls: ['./modal.page.scss'], stand..
async deleteBranch() { const modal = await this.modalController.create({ component: DeleteBranchModal, componentProps: { item: this.branch, }, }); await modal.present(); modal.onDidDismiss().then((res) => { if (res.role === 'submit') { this.router.navigateByUrl( this.router.routerState.snapshot.url.split('/')[1] ); } }); } 1. 모달 생성과 닫힌 후 로직 2. item : 통신 키 값 import { Component, OnInit, Input } fr..
ion-modal { --border-radius: 0.5rem; --width: 30rem; --height: 27rem; } ion-modal { --border-radius: 8px; --max-height: max-content; --max-width: max-content; --height: max-content; --width: max-content; --backdrop-opacity: 0.6; --padding: 8px; --overflow: visible; .modal-wrapper { height: auto; } .ion-page { max-height: max-content; } } ion-modal + ion-modal { --backdrop-opacity: 0.6 !important..
import { Component } from '@angular/core'; import { ModalController } from '@ionic/angular'; import { ModalPage } from '../modal/modal.page'; @Component({ selector: 'modal-example', templateUrl: 'modal-example.html', styleUrls: ['./modal-example.css'] }) export class ModalExample { constructor(public modalController: ModalController) { } async presentModal() { // 모달 열기 메소드 const modal = await th..