editing usemodal form footer
i am having a custom button in antmodal footer
footer={<Button >okk</Button>} if i click on this save functionality should occur how to do it?
4 Replies
Hey @rehan1 👋 ,
You can use
okButtonProps
of modalProps.
vicious-gold•2y ago
<Modal footer={
<Button {...modalProps.cancelButtonProps}>Custom Button</Button>
} className="modal-create-appointment" {...modalProps}>
modal not getting closed?
https://stackblitz.com/edit/pankod-refine-3ebrsu?file=src%2Fpages%2Fposts%2Flist.tsx%3AL96
You can use
close
function of useModalForm
vicious-gold•2y ago
thank you it worked