xenial-black
xenial-black2y ago

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
xenial-black
xenial-black2y ago
like how we have modalprops.okButtonProps in useModalForm? @alicanerdurmaz u have any idea on this?
adverse-sapphire
adverse-sapphire2y 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 ?
xenial-black
xenial-black2y ago
i want to have have custom save button for form in antd
adverse-sapphire
adverse-sapphire2y 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
*/
}}
>