Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 3a6a310

Browse files
committed
1 parent 6ac7289 commit 3a6a310

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

react-redux-form.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,22 @@ export interface ControlProps<T> extends React.HTMLProps<T> {
209209
* Signifies that the field state (validation, etc.) should not persist when the component is unmounted. Default: false
210210
*/
211211
persist?: boolean;
212+
/**
213+
* The disabled prop works just like you'd expect for controls that support the HTML5 disabled attribute.
214+
*/
215+
disabled?: any;
216+
/**
217+
* The event(s) that you want the <Control> to ignore. This can be good for performance and/or for de-cluttering the console log.
218+
*/
219+
ignore?: string|string[];
220+
/**
221+
* Determines the value given the event (from onChange) and optionally the control component's props.
222+
*/
223+
getValue?: (e: Event, props: any) => any;
224+
/**
225+
* Signifies that the control is a toggle (e.g., a checkbox or a radio). If true, then some optimizations are made.
226+
*/
227+
isToggle?: boolean;
212228
}
213229

214230
export class Control<T> extends React.Component<ControlProps<T>, {}> {

0 commit comments

Comments
 (0)