add defaultOpen

This commit is contained in:
Olmo del Corral
2017-01-25 21:22:54 +01:00
parent 4c4b7eb900
commit 1ad011f1f6
+6 -2
View File
@@ -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.