Skip to content

thoughtco/statamic-cplisting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CP Listing

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>