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

table.php #438

Closed
andrew-m-p opened this issue May 18, 2024 · 2 comments
Closed

table.php #438

andrew-m-p opened this issue May 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@andrew-m-p
Copy link

Hi,
would you consider an option to make actions usable in the first column or last column of a table, maybe by using @actions_before and @actions_after

<!-- ACTIONS -->
@if($actions_before)
    <td class="text-right py-0" @click="event.stopPropagation()">{{ $actions_before($row) }}</td>
@endif

 

<!-- ACTIONS -->
@if($actions_after)
    <td class="text-right py-0" @click="event.stopPropagation()">{{ $actions_after($row) }}</td>
@endif

Thanks

@andrew-m-p andrew-m-p added the enhancement New feature or request label May 18, 2024
@robsontenorio
Copy link
Owner

Actually you can “override” any column content by using fake columns.

See

https://mary-ui.com/docs/components/table#cell-slot

Adding “actions” on first column would be “problematic” , because the very first column is dedicated to selectable/expandable features.

@andrew-m-p
Copy link
Author

Sure but the reason I suggested it is that if you have many columns and you keep row ht fixed you end up with horiz. scroll bar and you need to scroll to the actions (hidden at the end of the columns).
Thanks anyway, you have a great package that can save time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants