Source code for laborchestrator.gui.side_panel
from dash import html
[docs]
def create_side_panel(db_open=True, browser_open=True):
return [
html.Div(id="main_splitter", className="main-splitter"),
html.Div(id='right_panels', className='right-panels', children=[
html.Details(
id='db_panel',
open=db_open,
children=[
html.Summary("Database View"),
html.Iframe(src="http://127.0.0.1:8000/job_logs/present_labware/"),
],
className="side-panel panel-db"
),
html.Div(id="panel_splitter", className="panel-splitter"),
html.Details(
id='local_panel',
open=browser_open,
children=[
html.Summary("SiLA-Browser"),
html.Iframe(src="http://127.0.0.1:3000/"),
],
className="side-panel panel-local"
),
], style={
'flex': '0 0 auto',
'width': '35%',
'display': 'flex',
'flexDirection': 'row',
'alignItems': 'stretch',
'overflow': 'auto',
}),
]