thoughtco / statamic-cplisting
此包最新版本(1.0.0)没有可用的许可信息。
为 Statamic v3 添加 cp-listing 组件,用于控制面板列表。
1.0.0
2021-02-26 10:50 UTC
This package is auto-updated.
Last update: 2024-08-26 19:04:59 UTC
README
提供一个 <cp-listing>
组件,用于在 Statamic v3 中使用,以实现可搜索、可过滤的列表视图。
安装方法:
composer require thoughtco/statamic-cplisting
然后运行 composer update
使用方法:
<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>