mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-25 23:21:21 +01:00
18 lines
431 B
JavaScript
18 lines
431 B
JavaScript
async function initMyCheckbox(path) {
|
|
const t = await loadTemplateAsync(path)
|
|
Vue.component('my-checkbox', {
|
|
name:'my-checkbox',
|
|
template: t,
|
|
data() {
|
|
return { checked: false, title: 'Check me' }
|
|
},
|
|
methods: {
|
|
check() {
|
|
this.checked = !this.checked;
|
|
console.log('### checked', this.checked)
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
|