Commit d7a99f95 authored by Martin Schorb's avatar Martin Schorb
Browse files

hide slice selector when n=1

parent 4440ba69
Pipeline #27320 passed with stage
in 24 seconds
......@@ -31,7 +31,7 @@ for idx in range(params.max_tileviews):
@app.callback([Output({'component':imtype+'_section_in'+idx_str,'module': MATCH},'value'),
Output({'component':imtype+'_section_in'+idx_str,'module': MATCH},'min'),
Output({'component':imtype+'_section_in'+idx_str,'module': MATCH},'max'),
Output({'component':imtype+'section_in'+idx_str,'module': MATCH},'style'),
Output({'component':imtype+'_section_div'+idx_str,'module': MATCH},'style'),
Output({'component':imtype+'_contrastslider'+idx_str, 'module': MATCH},'max'),
Output({'component':imtype+'_contrastslider'+idx_str, 'module': MATCH},'value')],
Input({'component': 'stack_dd','module': MATCH},'value'),
......
......@@ -240,10 +240,11 @@ def tile_view(module,numpanel=1,showlink=False,contrast=True):
idx_title=''
out.append(html.Div([html.Details([html.Summary('Explore tile'+idx_title),
html.Table([html.Tr([html.Td('Slice:'),
html.Td(html.Div(dcc.Input(id={'component': 'tileim_section_in'+idx_str, 'module': module},type='number',min=0,value=0),
html.Table([html.Tr([html.Div(
[html.Td('Slice:'),
html.Td(dcc.Input(id={'component': 'tileim_section_in'+idx_str, 'module': module},type='number',min=0,value=0))],
id={'component': 'tileim_section_div'+idx_str, 'module': module},
style={})),
style={}),
html.Td('Tile'),
html.Td(dcc.Dropdown(id={'component': 'tile_dd'+idx_str, 'module': module},className='dropdown_inline'))])
]),
......@@ -292,12 +293,13 @@ def section_view(module,numpanel=1,contrast=True):
idx_title=''
out.append(html.Div([html.Details([html.Summary('Explore slice'+idx_title),
html.Table([html.Tr([html.Td('Slice:'),
html.Div(html.Td(dcc.Input(id={'component': 'sliceim_section_in'+idx_str, 'module': module},type='number',min=0,value=0),
id={'component': 'sliceim_section_div'+idx_str, 'module': module},
style={})),
html.Div(
html.Table([html.Tr([html.Td('Slice:'),
html.Td(dcc.Input(id={'component': 'sliceim_section_in'+idx_str, 'module': module},type='number',min=0,value=0)),
])
]),
id={'component': 'sliceim_section_div'+idx_str, 'module': module},
style={}),
html.Div(style=contraststyle,id={'component': 'sliceim_contrastdiv'+idx_str, 'module': module},children=[
'Contrast limits: ',
dcc.RangeSlider(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment