mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
add defaultOpen
This commit is contained in:
Vendored
+6
-2
@@ -87,10 +87,14 @@ interface DropdownListProps extends React.Props<DropdownListClass> {
|
||||
onSearch?: (searchTerm: string) => void;
|
||||
/**
|
||||
* Whether or not the DropdownList is open. When unset (undefined) the DropdownList will
|
||||
* handle the opening and closing internally. The defaultOpen prop can be used to set an
|
||||
* initialization value for uncontrolled widgets.
|
||||
* handle the opening and closing internally.
|
||||
*/
|
||||
open?: boolean;
|
||||
/**
|
||||
* The defaultOpen prop can be used to set an
|
||||
* initialization value for uncontrolled widgets.
|
||||
*/
|
||||
defaultOpen?: boolean;
|
||||
/**
|
||||
* Called when the DropdownList is about to open or close. onToggle should be used when the
|
||||
* open prop is set otherwise the widget open buttons won't work.
|
||||
|
||||
Reference in New Issue
Block a user