From 15bf95bc08720e9f0c9fd3f07a4f6382804907aa Mon Sep 17 00:00:00 2001 From: Troy Zarger Date: Tue, 15 Jan 2019 03:29:10 -0500 Subject: [PATCH] Add busySpinner to Combobox Props Test for busySpinner on Combobox --- types/react-widgets/index.d.ts | 3 ++- types/react-widgets/lib/Combobox.d.ts | 5 +++++ types/react-widgets/react-widgets-tests.tsx | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/types/react-widgets/index.d.ts b/types/react-widgets/index.d.ts index a227b34e7e..bdf58b97d4 100644 --- a/types/react-widgets/index.d.ts +++ b/types/react-widgets/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-widgets 4.2 +// Type definitions for react-widgets 4.3 // Project: https://github.com/jquense/react-widgets // Definitions by: Rogier Schouten // Balázs Sándor @@ -6,6 +6,7 @@ // Andrew Makarov // Maxime Billemaz // Georg Steinmetz +// Troy Zarger // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/react-widgets/lib/Combobox.d.ts b/types/react-widgets/lib/Combobox.d.ts index 0a059f102d..332f73f918 100644 --- a/types/react-widgets/lib/Combobox.d.ts +++ b/types/react-widgets/lib/Combobox.d.ts @@ -139,6 +139,11 @@ interface ComboBoxProps extends ReactWidgetsCommonDropdownProps, * spinner gif, useful when loading data via an ajax call. */ busy?: boolean; + /** + * An optional ReactNode to override the spinner gif element when the busy property + * is set to true. + */ + busySpinner?: React.ReactNode; /** * The speed, in milliseconds, of the dropdown animation. */ diff --git a/types/react-widgets/react-widgets-tests.tsx b/types/react-widgets/react-widgets-tests.tsx index fced1f64e4..322e44d6c3 100644 --- a/types/react-widgets/react-widgets-tests.tsx +++ b/types/react-widgets/react-widgets-tests.tsx @@ -78,6 +78,12 @@ class Test extends React.Component> { delay={300} name="box" /> + + } + />