-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e5ac9a1
Showing
8 changed files
with
1,462 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.