thoughtco/statamic-cplisting

There is no license information available for the latest version (1.0.0) of this package.

Adds a cp-listing component to Statamic v3 for control panel lists

1.0.0 2021-02-26 10:50 UTC

This package is auto-updated.

Last update: 2024-11-26 19:37:55 UTC


README

Provides a <cp-listing> component to use within Statamic v3 for searchable, filterable listing views.

To install:

composer require thoughtco/statamic-cplisting

Then run composer update

To use:

   <cp-listing 
        :filters="{{ $filters->toJson() }}"
        :listing-config="{{
            collect([
                'preferencesPrefix' => 'namespace.myurl',
                'requestUrl' => 'namespace/api/myurl',
                'editUrl' => 'namespace/myurl/edit/',
                'deleteUrl' => 'namespace/myurl/delete/',
                'listingUrl' => 'namespace/myurl',
            ])->toJson()
        }}"
    ></cp-listing>