-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-easy-edit.d.ts
50 lines (43 loc) · 1.29 KB
/
react-easy-edit.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
declare module 'react-easy-edit' {
import React from 'react';
export enum Types {
TEXT = 'text',
// Add other types if needed
}
interface EasyEditProps {
type: Types
value?: string | number | []
options?: []
saveButtonLabel?: string | React.ReactElement
saveButtonStyle?: string
cancelButtonLabel?: string | React.ReactElement
cancelButtonStyle?: string
deleteButtonLabel?: string | React.ReactElement
buttonsPosition?: string
placeholder?: string
onCancel?: () => void
onSave: (value) => void
onValidate?: () => void
onFocus?: () => void
onBlur?: () => void
validationMessage?: string
allowEdit?: boolean
attributes?: {}
viewAttributes?: {}
instructions?: string
disableAutoSubmit?: boolean
disableAutoCancel?: boolean
editComponent?: React.ReactElement
displayComponent?: React.ReactElement
cssClassPrefix?: string
hideSaveButton?: boolean
hideCancelButton?: boolean
hideDeleteButton?: boolean
saveOnBlur?: boolean
cancelOnBlur?: boolean
editMode?: boolean
}
const EastEdit: React.FC<EasyEditProps>;
// Export other components or types as needed
export default EastEdit;
}