m-a-k-o / nova-custom-table-card

Simple Nova Card for Custom Tables
MIT License
46 stars 26 forks source link

Table not populated with Data #38

Open bkuhl opened 1 year ago

bkuhl commented 1 year ago

Nova version 4.19.5

I was having issues getting this to work for me so I decided to take an entry from the example and it won't load either. Using this example on my Main dashboard:

    public function cards()
    {
        return [
            // all the parameters are required
            new \Mako\CustomTableCard\CustomTableCard(
                ['Id', 'Name', 'Date'], // header
                [
                    [
                        'view' => '/resources/orders/1',
                        'columns' => [1, 'John Doe', '2018-08-28']
                    ]
                ], // data
                'Orders' //title
            ),
        ];
    }
Screenshot 2023-01-04 at 5 56 42 AM

I can see this in the JS console, so it appears the data is being sent as expected....

Screenshot 2023-01-04 at 5 57 30 AM

But as shown, the text isn't actually rendered in the DOM:

Screenshot 2023-01-04 at 5 59 09 AM