Added react-widget missing type (containerClassName)

This commit is contained in:
végtelenség
2019-02-27 14:16:00 +02:00
parent 84c42ddc56
commit caceb08513
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@
// Maxime Billemaz <https://github.com/MBillemaz>
// Georg Steinmetz <https://github.com/georg94>
// Troy Zarger <https://github.com/tzarger>
// Siya Mzam <https://github.com/vegtelenseg>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
+5
View File
@@ -166,6 +166,11 @@ interface DropdownListProps extends ReactWidgetsCommonDropdownProps<DropdownList
* when false the SelectList will render as a list of radio buttons, and checkboxes when true.
*/
multiple?: boolean;
/**
* Adds a css class to the input container element.
*/
containerClassName?: string;
}
interface DropdownListMessages {
@@ -94,6 +94,9 @@ class Test extends React.Component<React.Props<{}>> {
name="list"
multiple={false}
/>
<DropdownList
containerClassName="list-items"
/>
<Multiselect
autoFocus
allowCreate