mirror of
https://gitea.psi.ch/APOG/acsm-fairifier.git
synced 2025-07-13 02:41:49 +02:00
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
|
|
from dash import Dash, html, dcc, callback, Output, Input, State, dash_table
|
|
import dash_bootstrap_components as dbc
|
|
|
|
instrument_dashboard = dbc.Row([
|
|
html.H3("Select data table"),
|
|
|
|
# First Dropdown (Instrument Folders)
|
|
dcc.Dropdown(
|
|
id="instrument-dropdown",
|
|
options=[{"label": i, "value": i} for i in []],
|
|
placeholder="Select an Instrument Folder",
|
|
),
|
|
|
|
# Spinner wrapping the second and third dropdowns
|
|
dcc.Loading(
|
|
type="circle", # Spinner style
|
|
children=[
|
|
# Second Dropdown (Files)
|
|
dcc.Dropdown(
|
|
id="file-dropdown",
|
|
placeholder="Select a File",
|
|
disabled=True # Initially disabled
|
|
),
|
|
|
|
# Third Dropdown (Sub-selection)
|
|
dcc.Dropdown(
|
|
id="sub-dropdown",
|
|
placeholder="Select Variables",
|
|
multi = True,
|
|
disabled=True
|
|
)
|
|
]
|
|
)
|
|
],
|
|
justify="center", align="center",style={'background-color': '#f8f9fa', 'padding': '20px', 'text-align': 'center'}) |