laravel-livewire-tables icon indicating copy to clipboard operation
laravel-livewire-tables copied to clipboard

Why rowView is not working?

Open paramwork opened this issue 1 year ago • 6 comments

I just upgraded to V2 and my rowView() is not working at all.

public function rowView(): string
{
       return 'livewire-tables.rows.submissions_row';
}

It is loading the default view from columns. How do I use rowView in V2?

If it is removed from V2 what is the alternative to use? All of my tables (over 50) work in a custom row without rowView all of my tables have become unusable. Please help

paramwork avatar Aug 19 '22 18:08 paramwork

Im have same problem, and I get this error

Unable to locate a class or view for component [livewire-tables::table.cell].

how fix that?

YnievesDotNet avatar Aug 20 '22 22:08 YnievesDotNet

I just upgraded to V2 and my rowView() is not working at all.

public function rowView(): string
{
       return 'livewire-tables.rows.submissions_row';
}

It is loading the default view from columns. How do I use rowView in V2?

If it is removed from V2 what is the alternative to use? All of my tables (over 50) work in a custom row without rowView all of my tables have become unusable. Please help

Afaik there's not alternative, perhaps we can build back this feature?

DanielGSoftware avatar Aug 22 '22 11:08 DanielGSoftware

For most of my custom row views, I was able to replace them with format(). They were all relatively simple though, so YMMV

https://rappasoft.com/docs/laravel-livewire-tables/v2/columns/available-methods#content-formatting

imabug avatar Aug 24 '22 13:08 imabug

You're right, I knew format(), label() or view() were the alternatives, but it's not quite the same since you can end up with a lot of partials for one datatable vs using 1 row view.

DanielGSoftware avatar Aug 24 '22 17:08 DanielGSoftware

You're right, I knew format(), label() or view() were the alternatives, but it's not quite the same since you can end up with a lot of partials for one datatable vs using 1 row view.

I are using the label() but has better continue using el rowView

Thanks.

YnievesDotNet avatar Aug 24 '22 19:08 YnievesDotNet

We have to spend a lot of time if we use column formatting and lots of files to manage. I think rowView is a much better and more straightforward method than column formatting.

I have downgraded to v1 because rowView is missing. It would be great if we will get rowView back. Thank you

paramwork avatar Aug 29 '22 07:08 paramwork

Agree with this. RowView was one of my most favourite features. Just upgraded to V2 and was suprised I could not find it.

booni3 avatar Sep 27 '22 13:09 booni3

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 27 '22 16:10 stale[bot]