fair-rose
fair-rose3y 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
fair-rose
fair-roseOP3y ago
like how we have modalprops.okButtonProps in useModalForm? @alicanerdurmaz u have any idea on this?
sensitive-blue
sensitive-blue3y 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 ?
fair-rose
fair-roseOP3y ago
i want to have have custom save button for form in antd
sensitive-blue
sensitive-blue3y 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
*/
}}
>

Did you find this page helpful?