Apr 5, 2023
0
Level 1
Nova4 adding action in resource tool
Adding the action in the model resource is straight forward however how to add action in resource tool.
As explained in here https://nova.laravel.com/docs/4.0/customization/resource-tools.html#overview. with the given process in the docs, there's no explanation how can we add an action on the resource tool itself. This is fairly possible in Nova 3.5 by just adding these in CustomResource.vue file.
<action-selector
:resource-name="resource"
:actions="tool['actions']"
:pivot-actions="{ actions: [] }"
:selected-resources="resourceId"
@actionExecuted="$emit('actionExecuted')"
class="ml-3"
/>
Please or to participate in this conversation.