Disable and hide refresh button on show page
Hi, I would like to disable and hide the refresh button on the show button, while still keeping the other buttons
5 Replies
Hi @BlackBearFTW. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To disable and hide the
RefreshButton
on a Show
page while keeping the other buttons, you can customize the headerButtons
property of the Show
component. Below are examples for both Ant Design and Mantine UI integrations.
Ant Design
You can customize the headerButtons
property to exclude the RefreshButton
:
Source (https://refine.dev/docs/ui-integrations/ant-design/components/basic-views/show/#headerbuttons)
Mantine
Similarly, for Mantine, you can customize the headerButtons
property to exclude the RefreshButton
:
Source (https://refine.dev/docs/ui-integrations/mantine/components/basic-views/show/#headerbuttons)
By customizing the headerButtons
property, you can control which buttons are displayed on the Show
page, effectively disabling and hiding the RefreshButton
while keeping the other buttons.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@490961337896402944> kapa.ai is still learning and improving, please let us know how it did by reacting below
other-emeraldOP•4mo ago
@kapa.ai only the delete button should be shown
Let me check the knowledge base for you. One moment! :books:
----------------------
To show only the
DeleteButton
on the Show
page, you can customize the headerButtons
property to include only the DeleteButton
. Below are examples for both Ant Design and Mantine UI integrations.
Ant Design
You can customize the headerButtons
property to include only the DeleteButton
:
Source (https://refine.dev/docs/ui-integrations/ant-design/components/basic-views/show/#headerbuttons)
Mantine
Similarly, for Mantine, you can customize the headerButtons
property to include only the DeleteButton
:
Source (https://refine.dev/docs/ui-integrations/mantine/components/basic-views/show/#headerbuttons)
By customizing the headerButtons
property, you can ensure that only the DeleteButton
is displayed on the Show
page.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@490961337896402944> kapa.ai is still learning and improving, please let us know how it did by reacting below