Skip to content

Commit 219c19a

Browse files
authored
docs: Add reject function documentation for overlay.openAsync (#222)
1 parent b711ac8 commit 219c19a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎docs/src/pages/en/api/utils/overlay-open-async.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ overlay.openAsync(({ isOpen, close, unmount }) => {
3232
- `close`: A function to close the overlay. When you call this function, the value you pass as an argument will be delivered as the resolved value of the `Promise` returned by `overlay.openAsync`, and the overlay will close.
3333
To allow overlay closing animations to be displayed,
3434
- `unmount`: Function to remove the overlay. <br/>If called immediately with a closing animation, the component may be removed before the animation completes.
35+
- `reject`: When you call this function, the value you pass as an argument will be delivered as the rejected value of the `Promise` returned by `overlay.openAsync`, and the overlay will close.
3536
- **optional** `options`: Overlay options.
3637
- `overlayId`: Specify a unique ID when opening the overlay.
3738

‎docs/src/pages/ko/api/utils/overlay-open-async.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ overlay.openAsync(({ isOpen, close, unmount }) => {
3131
- `isOpen`: 오버레이가 열렸는지 여부를 나타내는 값이에요.
3232
- `close`: 오버레이를 닫는 함수예요. 이 함수를 호출 할 때 인자로 전달한 값은 `overlay.openAsync`가 반환하는 `Promise`의 결과 값으로 전달되며 오버레이가 닫혀요. <br/>오버레이 닫기 애니메이션 등을 보여주기 위해서 오버레이 정보는 메모리에 계속 남아있어요. 이것을 완전히 제거하려면 `unmount` 함수를 호출하세요.
3333
- `unmount`: 오버레이를 제거하는 함수예요. <br/>오버레이 닫기 애니메이션이 있을 때 `unmount`를 바로 호출하면 오버레이가 닫히기 전에 컴포넌트가 제거되어 애니메이션이 제대로 표시되지 않을 수 있어요.
34+
- `reject`: 이 함수를 호출 할 때 인자로 전달한 값은 `overlay.openAsync`가 반환하는 `Promise`의 reject 결과로 전달되며 오버레이가 닫혀요.
3435
- **optional** `options`: 오버레이 옵션입니다.
3536
- `overlayId`: 오버레이를 열 때 고유한 ID를 지정해요.
3637

0 commit comments

Comments
 (0)