Skip to content

Commit 5bed111

Browse files
Extends BaseDialog interface
Adds `onLinkClick` and `footer` properties to the BaseDialog interface. This enhancement allows for handling link clicks within dialogs and displaying a footer.
1 parent ab5a453 commit 5bed111

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

src/types/IChaynsReact.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,16 @@ export interface DialogAlert {
7676
}
7777

7878
export interface BaseDialog {
79-
text?: string,
80-
buttons?: DialogButton[],
81-
width?: string | number,
79+
text?: string;
80+
buttons?: DialogButton[];
81+
width?: string | number;
8282
animation?: {
83-
type: DialogAnimation,
84-
config?: any
85-
},
86-
hideDragHandle?: boolean,
83+
type: DialogAnimation;
84+
config?: any;
85+
};
86+
hideDragHandle?: boolean;
87+
onLinkClick?: (attributes: { [key: string]: string }) => void;
88+
footer?: string;
8789
}
8890

8991
export type Dialog<T = object> = BaseDialog & (DialogAlert | DialogConfirm | DialogInput | DialogModule<T> | DialogIFrame<T> | DialogSelect | DialogDate | DialogToast | DialogSignature | DialogFileSelect);

0 commit comments

Comments
 (0)