Hi everyone
Does Dash Mantine NOT support ‘groups’ or am I doing something wrong.
Mantine React docs
import dash_mantine_components as dmc
from dash import Dash, html, dcc, Input, Output, State, Patch, ctx, MATCH, ALL
app = Dash(__name__)
app.layout = html.Div(
[
dmc.Select(
id="creatable-select",
creatable=True,
searchable=True,
style={"width": 200},
#data=["react", "flask"],
data=[
{ 'group': 'Frontend', 'items': ['React', 'Angular'] },
{ 'group': 'Backend', 'items': ['Express', 'Django'] },
]
),
dmc.Text(id="result", mt=20),
]
)
@app.callback(Output("result", "children"), Input("creatable-select", "value"))
def popo(data):
return str(data)
if __name__ == "__main__":
app.run(debug=False)