saveButton props of create

i want to customise save and cancel button of savebuttonprops so how to add savebuttonprops fuctionality to other button
4 Replies
optimistic-gold
optimistic-gold2y ago
like how we have modalprops.okButtonProps in useModalForm? @alicanerdurmaz u have any idea on this?
wise-white
wise-white2y ago
Hi @rehan1, sorry for late response. Sorry but i don't understand what do you try to achive. Can you give me more detail or example to help me understand the desired behaviour ?
optimistic-gold
optimistic-gold2y ago
i want to have have custom save button for form in antd
wise-white
wise-white2y ago
for example on edit page; you can override all props like this. is this not enough for your customization ? you can pass all props on antd https://4x.ant.design/components/button/#API
const { saveButtonProps } = useForm<IPost>();

<Edit
saveButtonProps={{
...saveButtonProps,
/**
* other desired props
*/
}}
>
const { saveButtonProps } = useForm<IPost>();

<Edit
saveButtonProps={{
...saveButtonProps,
/**
* other desired props
*/
}}
>