Document dropdownParent config option

This commit is contained in:
Xon 2026-02-07 13:50:15 +08:00 committed by Sebastian Zoglowek
commit f1228e86fb
2 changed files with 15 additions and 0 deletions

View file

@ -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`

View file

@ -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;
}