SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js

Home Page:https://adminjs.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature]: Overriding the create new resource actions button

BuhayovA opened this issue · comments

Description

Screenshot 2024-04-07 at 9 36 12 PM

I want to override this "Create New" and "Filter" buttons, for example. At the moment I have not found a solution on how to do this.

Suggested Solution

add this links type into the override method. Or, you can add the option to include your custom component within the "recourse" settings (path: "recourse.options.actions.new.buttonComponent"). Currently, you can only modify the icon and text (but this requires altering the locale).

Alternatives

No response

Additional Context

No response

Pardon. After 2 days of continuous work, my brain didn't notice the obvious solution. Use "override" and "ActionHeader" type.