You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
*Component used forthe root node. Either a string to use aHTML element or a component.
43
+
*Determinesthe root node component (nativeHTML element or acustom Reactcomponent) for the React Dropdown.
32
44
*/
33
45
as?:ElementType
46
+
34
47
/**
35
-
* Configure the auto close behavior of the dropdown:
36
-
* - `true` - the dropdown will be closed by clicking outside or inside the dropdown menu.
37
-
* - `false` - the dropdown will be closed by clicking the toggle button and manually calling hide or toggle method. (Also will not be closed by pressing esc key)
38
-
* - `'inside'` - the dropdown will be closed (only) by clicking inside the dropdown menu.
39
-
* - `'outside'` - the dropdown will be closed (only) by clicking outside the dropdown menu.
48
+
* Configures automatic closing behavior for the React Dropdown:
49
+
* - `true` - Close on clicks inside or outside of the React Dropdown Menu.
50
+
* - `false` - Disable auto-close; manually call `hide` or `toggle` (also not closed by `Escape`).
51
+
* - `'inside'` - Close only when clicking inside the React Dropdown Menu.
52
+
* - `'outside'` - Close only when clicking outside the React Dropdown Menu.
53
+
*
54
+
*@example
55
+
* // Close only when user clicks outside of the menu
56
+
* <CDropdown autoClose="outside" />
40
57
*/
41
58
autoClose?:'inside'|'outside'|boolean
59
+
42
60
/**
43
-
*A string of all className you want appliedto thebase component.
* Appends the react dropdown menu to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`.
66
+
* Appends the React Dropdown Menu to a specific element. You can pass an HTML element or a function returning an element. Defaults to `document.body`.
* Callback firedwhenthecomponent requests to be shown.
107
+
* Callback firedimmediately aftertheReact Dropdown is displayed.
72
108
*/
73
109
onShow?:()=>void
110
+
74
111
/**
75
-
*Describes the placement ofyour componentafter Popper.jshas applied all themodifiers that may have flipped or altered the originally provided placement property.
112
+
*Determines the placement ofthe React Dropdown Menuafter Popper.js modifiers.
*If you want to disabledynamic positioningset this property to `true`.
119
+
*Enables or disablesdynamic positioningvia Popper.js for the React Dropdown Menu.
82
120
*/
83
121
popper?:boolean
122
+
123
+
/**
124
+
* Provides a custom Popper.js configuration or a function that returns a modified Popper.js configuration for advanced positioning of the React Dropdown Menu. [Read more](https://popper.js.org/docs/v2/constructors/#options)