Custom Toggle/Checkbox Field

Hi,

did anyone manage to build a custom panel field (plugin) based on the toggle field or a checkbox?
It seems to be vue related:
Even though the value gets stored and the component does somehow work, I couldn‘t figure out how to mark the input as being checked by its value and/or checked by default after reload (same with the toggle, checkbox under the hood). Once emit input is fired the component status resets automatically to true.

I tried
:value=“value”, v-model=“value” and :checked=“value” by triggering :input and :change

Thank you!

Should I mention that this issue is related to a thread from 2019…and nobody had an answer yet :thinking:?!
Luckily there is a walkthrough in the cookbook now – thanks to the team – clarifying the way to proceed correctly. Unfortunately it instantly leads to the current one.