Skip to content

Commit 7d0a4eb

Browse files
committed
doc: add getPopupContainer to README
1 parent 712cf4f commit 7d0a4eb

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,14 @@ CronProps {
473473
altWeekDays?: string[]
474474
altMonths?: string[]
475475
}
476+
477+
/**
478+
* Define the container for the dropdowns.
479+
* By default, the dropdowns will be rendered in the body.
480+
* This is useful when you want to render the dropdowns in a specific
481+
* container, for example, when using a modal or a specific layout.
482+
*/
483+
getPopupContainer?: () => HTMLElement
476484
}
477485
```
478486

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export interface CronProps {
225225
*/
226226
locale?: Locale
227227

228-
/*
228+
/**
229229
* Define the container for the dropdowns.
230230
* By default, the dropdowns will be rendered in the body.
231231
* This is useful when you want to render the dropdowns in a specific

0 commit comments

Comments
 (0)