We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 90b8520 + c8c9d71 commit 742cffdCopy full SHA for 742cffd
1 file changed
Toyota Widget/MyToyota.js
@@ -66,6 +66,22 @@ function addDetailsGrid(widget) {
66
}
67
68
69
+// Toyota Car Widget - Part 5: Add key-value detail box
70
+function addDetailBlock(stack, label, value) {
71
+ const block = stack.addStack()
72
+ block.layoutVertically()
73
+
74
+ const lbl = block.addText(label)
75
+ lbl.font = Font.mediumSystemFont(11)
76
+ lbl.textColor = secondaryTextColor
77
78
+ const val = block.addText(value.toString())
79
+ val.font = Font.boldSystemFont(14)
80
+ val.textColor = textColor
81
+}
82
83
84
85
if (widgetSize === "large") {
86
await buildLargeWidget(widget)
87
} else {
0 commit comments