Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Feb 15, 2021
0 parents commit e5ac9a1
Show file tree
Hide file tree
Showing 8 changed files with 1,462 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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:

```blade
<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>
```
28 changes: 28 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "thoughtco/statamic-cplisting",
"description": "Adds a cp-listing component to Statamic v3 for control panel lists",
"autoload": {
"psr-4": {
"Thoughtco\\CPListing\\": "src"
}
},
"authors": [
{
"name": "Ryan Mitchell"
}
],
"support": {
"email": "[email protected]"
},
"extra": {
"statamic": {
"name": "CP Listing",
"description": "Adds a cp-listing component to Statamic v3 for control panel lists"
},
"laravel": {
"providers": [
"Thoughtco\\CPListing\\ServiceProvider"
]
}
}
}
Loading

0 comments on commit e5ac9a1

Please sign in to comment.