forked from MapComplete/MapComplete
Add enable/disable all button for layers, fix #1407
This commit is contained in:
parent
894c48520a
commit
5c11149085
3 changed files with 59 additions and 11 deletions
|
|
@ -8,6 +8,9 @@
|
|||
let _c: boolean = selected.data ?? true
|
||||
let id = `checkbox-input-${Math.round(Math.random()*100000000)}`
|
||||
$: selected.set(_c)
|
||||
selected.addCallbackD(s => {
|
||||
_c = s
|
||||
})
|
||||
</script>
|
||||
|
||||
<label class="no-image-background flex items-center gap-1">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue