diff --git a/README.md b/README.md index 7b736a29..aa7e5042 100644 --- a/README.md +++ b/README.md @@ -536,6 +536,14 @@ var choices = new Choices(el, { }); ``` +### dropdownParent + +**Type:** `string | null` **Default:** null + +**Input types affected:** `select-one`, `select-multiple` + +**Usage:** CSS selector for the element to append the dropdown to. Similar to select2's appendTo option + ### position **Type:** `String` **Default:** `auto` diff --git a/src/scripts/interfaces/options.ts b/src/scripts/interfaces/options.ts index 53a58c94..249de18b 100644 --- a/src/scripts/interfaces/options.ts +++ b/src/scripts/interfaces/options.ts @@ -635,5 +635,12 @@ export interface Options { appendGroupInSearch: boolean; + /** + * CSS selector for the element to append the dropdown to. Similar to select2's appendTo option + * + * **Input types affected:** `select-one`, `select-multiple` + * + * @default null + */ dropdownParent: string | null; }