arillo/silverstripe-cms-alpine
Composer 安装命令:
composer require arillo/silverstripe-cms-alpine
包简介
Makes alpinejs available in silverstripe CMS
关键字:
README 文档
README
Loads alpinejs into CMS.
To instantiate you alpine components, you need to listen for the alpine:init event like this:
/* global Alpine */
const component = {
init() {
console.log('yourComponent.init');
}
};
if (typeof Alpine !== 'undefined') {
Alpine.data('yourComponent', component);
}
document.addEventListener('alpine:init', () => {
Alpine.data('yourComponent', component);
});
Currently only alpinejs@3.12.3_dist_cdn.min.js is available, support for other versions might come in future.
统计信息
- 总下载量: 1.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-08-08