개요
“개요” 섹션사용 toast.success() 및 toast.loading() 가벼운 피드백을 위해 알림창을 차단하는 대신 사용하세요.
플랫폼 지원
“플랫폼 지원” 섹션| 플랫폼 | 지원 | 참고 사항 |
|---|---|---|
| iOS | 지원 | 네이티브 레이어 |
| Android | 지원 | Material 스타일 |
| 웹 | 지원 | DOM 폴백 |
데모
“데모” 섹션
핵심 기능
“핵심 기능” 섹션toast.show- 전체 설정 객체를 사용하여 커스텀 toast를 표시합니다.toast.success,toast.error,toast.info,toast.warning- 제목과 선택적 설정을 포함한 일반적인 시맨틱 toast를 표시합니다.toast.loading- 계속 표시되는 로딩 toast를 표시합니다.toast.update- 기존 toast를 그 자리에서 업데이트합니다.toast.promise- 로딩, 성공, 에러 상태를 가진 promise를 추적합니다.toast.dismiss및toast.dismissAll- toast 하나를 제거하거나 큐를 비웁니다.
공개 API
“Public API” 섹션| 메서드 | 설명 |
|---|---|
toast.show(config, options?) | 전체 기능을 사용해 toast를 표시합니다 ToastConfig. |
toast.success(title, config?, options?) | 성공 toast를 표시합니다. |
toast.error(title, config?, options?) | 에러 toast를 표시합니다. |
toast.info(title, config?, options?) | 정보성 toast를 표시합니다. |
toast.warning(title, config?, options?) | 경고 toast를 표시합니다. |
toast.loading(title, config?, options?) | 기본적으로 자동으로 닫히지 않는 로딩 toast를 표시합니다. |
toast.update(id, partial) | 기존 toast를 업데이트합니다. |
toast.promise(promise, messages) | 로딩 상태를 표시한 후 성공 또는 에러로 업데이트합니다. |
toast.dismiss(id?) | toast 하나 또는 활성 toast를 닫습니다. |
toast.dismissAll() | 표시 중이거나 대기 중인 모든 toast를 닫습니다. |
Source of Truth
“Source Of Truth” 섹션이 레퍼런스는 다음에서 동기화됩니다. src/definitions.ts 에서 capacitor-pretty-toast.
@capgo/capacitor-pretty-toast에서 계속하기
“@capgo/capacitor-pretty-toast에서 계속하기” 섹션사용 중이라면 @capgo/capacitor-pretty-toast 네이티브 플러그인 작업을 계획하려면, 이를 다음 항목과 연결하세요: Capgo 플러그인 디렉토리 Capgo Plugin Directory의 제품 워크플로우에 맞춰, Capgo의 Capacitor 플러그인 Capgo의 Capacitor 플러그인 구현 상세 내용에 대해서는, 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트의 구현 세부 사항은, Ionic Enterprise 플러그인 대안 Ionic Enterprise 플러그인 대안의 제품 워크플로우와, Capgo Native Build Capgo Native Builds의 제품 워크플로우를 위해.