mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
react-widgets: Add combobox placeholder (#16288)
* react-widgets: add combobox placeholder * Add name to definitions by
This commit is contained in:
parent
dd48f9475c
commit
455e6bb9c0
2
types/react-widgets/index.d.ts
vendored
2
types/react-widgets/index.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
// Type definitions for react-widgets 3.2
|
||||
// Project: https://github.com/jquense/react-widgets
|
||||
// Definitions by: Rogier Schouten <https://github.com/rogierschouten/>, Balázs Sándor <https://github.com/sanyatuning>
|
||||
// Definitions by: Rogier Schouten <https://github.com/rogierschouten/>, Balázs Sándor <https://github.com/sanyatuning>, Frode Hansen <https://github.com/frodehansen2>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
|
||||
5
types/react-widgets/lib/Combobox.d.ts
vendored
5
types/react-widgets/lib/Combobox.d.ts
vendored
@ -73,6 +73,11 @@ interface ComboBoxProps extends ReactWidgetsCommonDropdownProps<ComboBoxClass> {
|
||||
* the groupBy value will be used.
|
||||
*/
|
||||
groupComponent?: React.ReactType;
|
||||
/**
|
||||
* The same as an input placeholder, only works in browsers that support the placeholder
|
||||
* attribute for inputs
|
||||
*/
|
||||
placeholder?: string;
|
||||
/**
|
||||
* When true the Combobox will suggest, or fill in, values as you type. The suggestions are
|
||||
* always "startsWith", meaning it will search from the start of the textField property
|
||||
|
||||
@ -47,7 +47,7 @@ class Test extends React.Component<React.Props<{}>, {}> {
|
||||
</div>
|
||||
<div>
|
||||
<Calendar disabled readOnly />
|
||||
<Combobox disabled readOnly dropUp />
|
||||
<Combobox disabled readOnly dropUp placeholder={'Some text'}/>
|
||||
<DateTimePicker disabled readOnly dropUp />
|
||||
<DropdownList disabled readOnly dropUp />
|
||||
<Multiselect disabled readOnly dropUp />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user