Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding actions in the resources row #188

Closed
albalooshi opened this issue Aug 25, 2018 · 11 comments
Closed

Adding actions in the resources row #188

albalooshi opened this issue Aug 25, 2018 · 11 comments
Labels
implemented Feature Request implemented

Comments

@albalooshi
Copy link

Is it possible to add specific actions in a row next to the the three current icons? Please see the attached image for an example

buttons

If not can I request this feature?

@David-Griffiths
Copy link

The current solution for this is to create an action, check that row's box and run the action.

What type of actions would make sense in-line, but not with the checkbox-then-run-action flow?

@andypa
Copy link

andypa commented Aug 27, 2018

@Andy-Baker as an example: I created a Page Model and would like to sort the models directly from the index view.

@albalooshi
Copy link
Author

@Andy-Baker
its a lot easier for the nova user.

An example: To activate a user account, the nova user will search using the targeted user account using the email and there will be only one result, you can just click the activate button directly instead of checking it, going to the actions drop down and clicking activate.

@ardyn
Copy link

ardyn commented Sep 9, 2018

@Andy-Baker Another example: I have list of customers. I need to create an appointment for Customer #1. I open the action, input the appointment time and run the action. Being that I cannot have two customers scheduled for the same appointment time, this action only runs on a specific Customer record. Right now I have to navigate to the customer record, click actions, select action. That's 3 clicks and a page load when I could do the action with one click.

@dillingham
Copy link
Contributor

dillingham commented Sep 15, 2018

@ardyn your action would be $onlyOnDetail

@albalooshi being that you can have MANY actions, and those actions can be on MANY relationship interfaces.. ie view many users on a single account detail, or same app and users as event attendees, I think cluttering up the row wouldn't be the solution when that action may not make sense on an related interface.

Would also run into the issue of wanting to conditionally show actions on rows
Won't want to activate a user more than once

I think a different ui specific to this flow would make the most sense
Invert the flow from resource => action to action => resource
Click "Activate User" and select user / enter fields within modal

@dillingham
Copy link
Contributor

dillingham commented Sep 16, 2018

Second thought, its a great idea lol as a field

tighten/nova-package-development#44

@davidhemphill
Copy link
Contributor

This is currently not supported. You can add your own customized version of the resource's table row component if you absolutely need this.

@aozen
Copy link

aozen commented Dec 21, 2018

Is there any post or package for this?

@matthiggins
Copy link

matthiggins commented Oct 3, 2019

In the most recent release notes for v2.4.0 it says

"Inline Actions": added ability to show Actions inline in their own menu on individual resource table rows.

But I can't find any documentation on that. Has anyone figured out how to do it?

Can we get the documentation to update when releases go out as well?

Edit : There is a public parameter for $showOnTableRow that you can set on the action.

@davidhemphill
Copy link
Contributor

The docs were updated at the same time as release. Here's the relevant section: https://nova.laravel.com/docs/2.0/actions/defining-actions.html#action-visibility

@crynobone crynobone added the implemented Feature Request implemented label Oct 4, 2021
@umairtariq1021
Copy link

impersonate_icon
I want to add a new icon just like the view or edit icon.
I want to add this in front of the view icon.
How i can do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
implemented Feature Request implemented
Projects
None yet
Development

No branches or pull requests

10 participants