thoughtco / statamic-cplisting
Adds a cp-listing component to Statamic v3 for control panel lists
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Language:Vue
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>