adminjs icon indicating copy to clipboard operation
adminjs copied to clipboard

Allow adding buttons to Action header

Open AshotN opened this issue 2 years ago • 1 comments

Describe the problem feature solves Right now the only way to add a button to the header of a resource/record is to use a custom action. I want to create a button that is simply a link to a different page.

Describe the solution you'd like The ability to pass a custom component to the header

Describe alternatives you've considered Creating an action with a custom component that just acts as a redirect

Acceptance criteria

  • [ ] Pass component to header
  • [ ] Document this feature

AshotN avatar Apr 16 '22 23:04 AshotN

Potential implementation:

  • add href option to Action config
  • handler should be optional
  • if href is specified but handler isn't, the UI button should simply open the link

dziraf avatar Jul 04 '23 09:07 dziraf