Download the PHP package meghdadfadaee/nova-row-actions without Composer
On this page you can find all versions of the php package meghdadfadaee/nova-row-actions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download meghdadfadaee/nova-row-actions
More information about meghdadfadaee/nova-row-actions
Files in meghdadfadaee/nova-row-actions
Package nova-row-actions
Short Description Display arbitrary Laravel Nova actions as accessible index-row buttons.
License MIT
Informations about the package nova-row-actions
Nova Row Actions
displays ordinary Laravel Nova actions as visible, accessible buttons in resource index rows. It uses Nova's standard action endpoint, authorization, confirmation forms, response handling, and table refresh flow.
Requirements
- PHP 8.1+
- Laravel 10.48+, 11.44+, 12.1+, or 13
- Laravel Nova 5.8.3+
Installation
Install the package with Composer. Laravel package discovery registers its service provider and compiled Nova assets automatically.
Usage
Add the field to a Nova resource and keep each represented action registered
in the resource's actions() method. The latter is required because Nova's
standard action endpoint only executes actions registered by the resource.
exceptInline() leaves actions available in Nova's bulk selector and detail
view while removing them from the row ellipsis.
Actions with form fields
Actions that define fields use Nova's native action modal automatically. Leave
confirm unset so the action's own confirmation strategy, fields, validation,
file uploads, and dependent-field behavior are preserved.
Do not set confirm: false on a field-bearing action unless it is intentionally
safe to execute with the fields' default values. That option maps directly to
Nova's withoutConfirmation behavior and bypasses the entire action modal.
Button options
add() accepts the following named arguments:
icon: a Nova icon name, such ascheckorx-mark.iconType: Heroiconsoutline,solid,mini, ormicro; defaults tooutline.color:default,primary,success,danger,warning, orinfo.variant:outline,solid, orghost.label: button/accessibility label; defaults to the action name.tooltip: tooltip text; defaults to the resolved label.activeWhen: boolean or row callback controlling the pressed/active state.disabledWhen: boolean or row callback controlling disabled state.visibleWhen: boolean or row callback controlling server-side visibility.order: numeric order; insertion order is used by default.confirm:trueto force confirmation,falseto skip it, ornullto preserve the Nova action's own confirmation strategy.showLabel: display text beside the icon; labels remain available to screen readers when this is false.
Callbacks receive (Model $model, NovaRequest $request, Action $action) and may
declare only the leading arguments they need.
Icons
Icons are rendered by Nova's Icon component from laravel-nova-ui, so the
package supports Heroicons v2.1.5+ while always using the exact Heroicons
release bundled by the installed Nova version. Use kebab-case names, including:
check, x-mark, plus, minus, pencil-square, trash, eye, bolt,
arrow-path, arrow-down-tray, paper-airplane, play, pause, lock-closed,
lock-open, star, heart, bell, envelope, user, users, cog-6-tooth,
document, document-check, clipboard, magnifying-glass, and
exclamation-triangle.
The package deliberately does not install a second Heroicons copy; importing
Nova's UI component avoids version conflicts. For reference, Nova 5.8.3 in the
test application declares and locks @heroicons/vue 2.2.0, whose icon API is
compatible with the supported 2.1.5 baseline.
Notes and limitations
- Actions must be normal resource actions registered by
actions(). Pivot-only actions and lens-specific endpoints are not supported by the field. - Relationship indexes are supported through Nova's
viaResource,viaResourceId, andviaRelationshipaction parameters. - Nova action fields, validation errors, downloads, events, response modals, redirects, visits, danger messages, notifications, and progress state are delegated to Nova 5.8.3's native action composable.
- The package ships compiled production assets; Node is only needed when modifying the Vue or CSS sources.
Development
All versions of nova-row-actions with dependencies
illuminate/support Version ^10.48|^11.44|^12.1|^13.0
laravel/nova Version ^5.8.3