Commit 4b5919a Valerio Como
committed
1 parent f27facc commit 4b5919a Copy full SHA for 4b5919a
File tree 2 files changed +15
-0
lines changed
packages/ketchup/src/components/kup-input-panel
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -73,4 +73,5 @@ export enum KupInputPanelProps {
73
73
data = 'Actual data of the input panel.' ,
74
74
hiddenSubmitButton = 'Creates a hidden submit button in order to submit the form with enter.' ,
75
75
submitCb = 'Sets the callback function on submit form' ,
76
+ valueChangeCb = 'Sets the callback function on value change event' ,
76
77
}
Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ import { KupDom } from '../../managers/kup-manager/kup-manager-declarations';
43
43
import { KupDataCell } from '../../components' ;
44
44
import { getProps , setProps } from '../../utils/utils' ;
45
45
46
+ interface ValueChangeEvent {
47
+ data : {
48
+ [ key : string ] : number | string | object ;
49
+ // field: string;
50
+ // value: number | string | object;
51
+ } ;
52
+ }
53
+
46
54
const dom : KupDom = document . documentElement as KupDom ;
47
55
@Component ( {
48
56
tag : 'kup-input-panel' ,
@@ -84,6 +92,12 @@ export class KupInputPanel {
84
92
* @default null
85
93
*/
86
94
@Prop ( ) submitCb : ( e : SubmitEvent ) => unknown = null ;
95
+
96
+ /**
97
+ * Sets the callback function on value change event
98
+ * @default null
99
+ */
100
+ @Prop ( ) valueChangeCb : ( e : ValueChangeEvent ) => unknown = null ;
87
101
//#endregion
88
102
89
103
//#region STATES
You can’t perform that action at this time.
0 commit comments