-
DescriptionIs there a way to fill the dasboard valuebox with ---
title: "test"
format: dashboard
---
```{ojs}
value = 42
```
```{ojs}
//| content: valuebox
//| title: "Test"
//| icon: pencil
//| color: primary
???
```
Unfortunately the documentation doesn't include an example for ojs. And I can't get the dict right. I've had a look at the ojs documentation. And I was able to output a JS Object with a value key, but that's also not rendered like the numbers from R or python, but shows up as Object {value: 42} |
Beta Was this translation helpful? Give feedback.
Answered by
mcanouil
Feb 21, 2024
Replies: 1 comment 3 replies
-
Why don't you use "value"? ---
title: "test"
format: dashboard
---
## Row
```{ojs}
//| include: false
value = 42
```
```{ojs}
//| content: valuebox
//| title: "Test"
//| icon: pencil
//| color: primary
value
``` |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I opened an issue to track this: