Open
Description
Hello,
The following snippet works in Python:
from dash import Dash, dcc, html
entries = [
{
"label": [
html.Div(style={
"width" : "2cm",
"height": "1em",
"background-color": "red",
}),
"my test",
],
"value": "my test",
},
]
structure_checkboxes = dcc.Checklist(options=entries, style={
"width": "100%",
})
app = Dash()
structure_list = html.Div(className="col-6", children=[structure_checkboxes])
gui = html.Div(children=[structure_list])
app.layout = html.Div(gui)
if __name__ == '__main__':
app.run_server(debug=True)
I have tried this simplified code, but even the simplified example gives me the following error message:
Invalid argument `options[0].label` passed into Checklist.
using Dash
entries = [
Dict(
"label" => ["my test"],
"value" => "my test",
),
]
structure_checkboxes = dcc_checklist(options=entries)
app = dash()
structure_list = html_div(
className="col-2",
children=[structure_checkboxes],
)
gui = html_div(children=[structure_list])
app.layout = html_div() do
gui
end
run_server(app, "0.0.0.0", 8080, debug=true)
How would I translate this to Julia? Unfortunately, the corresponding section in the documentation is not translated to Julia.
Metadata
Metadata
Assignees
Labels
No labels