style={'display': 'inline-block'}, labelStyle={'display': 'inline-block'}, ), html.B('Max '), dcc.Input( id=ID('max'), type='number', min=0, value=10, style={ 'display': 'inline-block', 'width': '5em', 'height': '1.2em' }, ), html.Spacer(' '), html.Label('questions', style={'display': 'inline-block'}) ], style={'width': '100%'}), # limit time for test run html.Div([ dcc.Checklist( id=ID('limit-time'), options=[{ 'value': 'yes', 'label': ' ' }], values=[], style={'display': 'inline-block'}, labelStyle={'display': 'inline-block'},
import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app from support import A1_welcome, A2_temperature, A3_salinity, A4_currents, A5_energy, A6_waves, A7_shipRouteOptimization, A8_oceanSurface, A9_particleTracking import os app.layout = html.Div([ dcc.Location(id='url', refresh=True, pathname="/support/A1_welcome"), html.Div(id='page-content'), dcc.Link(html.Button("Welcome page"), href='/support/A1_welcome', className="welcomePage"), html.Spacer(" "), dcc.Link(html.Button("Temperature"), href='/support/A2_temperature', className="temperature"), html.Spacer(" "), dcc.Link(html.Button("Salinity"), href='/support/A3_salinity', className="salinity"), html.Spacer(" "), dcc.Link(html.Button("Currents"), href='/support/A4_currents', className="currents"), html.Spacer(" "), dcc.Link(html.Button("Energy"), href='/support/A5_energy', className="energy"), html.Spacer(" "),
for subject in subject_list: subject_options.append({'label': subject, 'value': subject}) task_options = [] for task in task_list: task_options.append({'label': task, 'value': task}) preproc_options = [] for preproc in preproc_list: preproc_options.append({'label': preproc, 'value': preproc}) # define layout layout = html.Div(children=[ # dropdowns html.Div(children=[ dcc.Markdown("__DASHBOARD #1__"), html.Spacer(), dcc.Markdown("__DASHBOARD #2__") ], style=style_dropdown_title), html.Div(children=[ dcc.Markdown("__Subject__", style={'margin-top': 5}), dcc.Dropdown( id='subject_dd_1', options=subject_options, value=subject_list[0]), html.Spacer(), dcc.Markdown("__Subject__", style={'margin-top': 5}), dcc.Dropdown( id='subject_dd_2', options=subject_options, value=subject_list[1]) ], style=style_dropdown), html.Div(children=[ dcc.Markdown("__Preprocessing__", style={'margin-top': 5}),