Maybe. I haven't tried it, but consider this:
<link rel="import" href="/mnt/sysassets/widgets/checkbox.defs" />
<use href="#checkbox" value="1" />
Best AnswerHi - thanks for this advice, changing the defs and the href did get rid of the errors in the simulator.
However I've still got problems
```
Best AnswerHi
Sorry to say I haven't found any documentation on the checkbox widget from the SDK and trying to guess what to do was too inefficient and also probably not supported.
In the end I reimplemented the checkbox functionality using the fitbit design assets.
I blogged about it here
http://derekwilson.net/blog/2021/02/25/porting-wrist-list-to-fitbit-os5
My app is open source so feel free to copy my code, if you make the implementation more generic I may even copy it back 🙂
https://bitbucket.org/derekwilson/wrist-list/src/master/Fitbit-os5/
Hope this helps
Derek
Best AnswerHi,
I was also looking for how to implement a checkbox for the Fitbit SDK 6 and found your answer.
Many thanks for that!
But it seems to me that the checkbox.defs widget is undocumented.
At least when I look through the official documentation from Fitbit in the User Interface Guide
I also found out there is a toggle component in a widget called /mnt/sysassets/widgets/toggle_switch.defs which also seems to be undocumented.
So my questions are:
1. Are there any other undocumented widgets for the Fitbit SDK 6?
Maybe there is a widget for radio buttons as well?
2. How did you know about the /mnt/sysassets/widgets/checkbox.defs widget?
Thx!
Best Answer