Improove naming input options

This commit is contained in:
barsdeveloper
2022-10-14 19:52:00 +02:00
parent da73cf98b5
commit 0b19d89416
17 changed files with 64 additions and 60 deletions

View File

@@ -1,4 +1,5 @@
import { html, nothing } from "lit"
import MouseIgnore from "../input/mouse/MouseIgnore"
import PinTemplate from "./PinTemplate"
/**
@@ -23,6 +24,13 @@ export default class BoolPinTemplate extends PinTemplate {
this.#input.removeEventListener("change", this.onChangeHandler)
}
createInputObjects() {
return [
...super.createInputObjects(),
new MouseIgnore(this.#input, this.element.blueprint),
]
}
getInputs() {
return [this.#input.checked ? "true" : "false"]
}