Skip to content

Commit

Permalink
Attach select menus
Browse files Browse the repository at this point in the history
  • Loading branch information
duytnguyendtn committed Sep 29, 2022
1 parent 9f3bd13 commit cc31e7e
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions jdaviz/components/plugin_dataset_select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<v-row v-if="items.length > 1 || show_if_single_entry">
<v-select
:menu-props="{ left: true }"
attach
:items="items"
v-model="selected"
@change="$emit('update:selected', $event)"
Expand Down
1 change: 1 addition & 0 deletions jdaviz/components/plugin_layer_select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<v-row v-if="items.length > 1 || show_if_single_entry">
<v-select
:menu-props="{ left: true }"
attach
:items="items"
v-model="selected"
@change="$emit('update:selected', $event)"
Expand Down
1 change: 1 addition & 0 deletions jdaviz/components/plugin_subset_select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<v-row v-if="items.length > 1 || show_if_single_entry">
<v-select
:menu-props="{ left: true }"
attach
:items="items"
v-model="selected"
@change="$emit('update:selected', $event)"
Expand Down
1 change: 1 addition & 0 deletions jdaviz/components/plugin_viewer_select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<v-row v-if="items.length > 1 || show_if_single_entry">
<v-select
:menu-props="{ left: true }"
attach
:items="items"
v-model="selected"
@change="$emit('update:selected', $event)"
Expand Down
1 change: 1 addition & 0 deletions jdaviz/configs/default/plugins/collapse/collapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<v-row>
<v-select
:menu-props="{ left: true }"
attach
:items="method_items.map(i => i.label)"
v-model="method_selected"
label="Method"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<v-row v-if="show_modes">
<v-select
:menu-props="{ left: true }"
attach
:items="smooth_modes"
v-model="selected_mode"
label="Smoothing Type"
Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/default/plugins/line_lists/line_lists.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
<v-row>
<v-select
:menu-props="{ left: true }"
attach
:items="available_lists"
@change="list_selected"
label="Available Line Lists"
Expand Down Expand Up @@ -178,6 +179,7 @@
<j-tooltip tipid='plugin-line-lists-custom-unit'>
<v-select
:menu-props="{ left: true }"
attach
:items="custom_unit_choices"
v-model="custom_unit"
label="Unit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<v-form v-model="form_valid_model_component">
<v-row v-if="model_comp_items">
<v-select
attach
:menu-props="{ left: true }"
:items="model_comp_items.map(i => i.label)"
v-model="model_comp_selected"
Expand Down
5 changes: 5 additions & 0 deletions jdaviz/configs/default/plugins/plot_options/plot_options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
<glue-state-sync-wrapper v-if="config === 'cubeviz'" :sync="collapse_func_sync" :multiselect="multiselect" @unmix-state="unmix_state('function')">
<v-select
:menu-props="{ left: true }"
attach
:items="collapse_func_sync.choices"
v-model="collapse_func_value"
label="Collapse Function"
Expand Down Expand Up @@ -157,6 +158,7 @@
<j-plugin-section-header v-if="stretch_function_sync.in_subscribed_states">Stretch</j-plugin-section-header>
<glue-state-sync-wrapper :sync="stretch_function_sync" :multiselect="multiselect" @unmix-state="unmix_state('stretch_function')">
<v-select
attach
:menu-props="{ left: true }"
:items="stretch_function_sync.choices"
v-model="stretch_function_value"
Expand All @@ -167,6 +169,7 @@

<glue-state-sync-wrapper :sync="stretch_preset_sync" :multiselect="multiselect" @unmix-state="unmix_state('stretch_preset')">
<v-select
attach
:menu-props="{ left: true }"
:items="stretch_preset_sync.choices"
v-model="stretch_preset_value"
Expand Down Expand Up @@ -197,6 +200,7 @@
<div v-if="image_visible_sync.in_subscribed_states && image_visible_value">
<glue-state-sync-wrapper :sync="image_color_mode_sync" :multiselect="multiselect" @unmix-state="unmix_state('image_color_mode')">
<v-select
attach
:menu-props="{ left: true }"
:items="image_color_mode_sync.choices"
v-model="image_color_mode_value"
Expand All @@ -209,6 +213,7 @@

<glue-state-sync-wrapper v-if="image_color_mode_value === 'Colormaps'" :sync="image_colormap_sync" :multiselect="multiselect" @unmix-state="unmix_state('image_colormap')">
<v-select
attach
:menu-props="{ left: true }"
:items="image_colormap_sync.choices"
v-model="image_colormap_value"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
<v-row>
<v-select
:menu-props="{ left: true }"
attach
:items="plot_types"
v-model="current_plot_type"
label="Plot Type"
Expand Down
1 change: 1 addition & 0 deletions jdaviz/configs/imviz/plugins/catalogs/catalogs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<v-row>
<v-select
:menu-props="{ left: true }"
attach
:items="catalog_items.map(i => i.label)"
v-model="catalog_selected"
label="Catalog"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

<v-row>
<v-select
attach
:menu-props="{ left: true }"
:items="viewer_items"
v-model="selected_viewer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
<v-col cols=10>
<v-select
:menu-props="{ left: true }"
attach
:items="line_items"
v-model="selected_line"
label="Line"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

<v-row>
<v-select
attach
:menu-props="{ left: true }"
:items="trace_type_items.map(i => i.label)"
v-model="trace_type_selected"
Expand Down Expand Up @@ -112,6 +113,7 @@

<v-row v-if="trace_type_selected==='Auto'">
<v-select
attach
:menu-props="{ left: true }"
:items="trace_peak_method_items.map(i => i.label)"
v-model="trace_peak_method_selected"
Expand Down Expand Up @@ -170,6 +172,7 @@

<v-row>
<v-select
attach
:menu-props="{ left: true }"
:items="bg_type_items.map(i => i.label)"
v-model="bg_type_selected"
Expand Down Expand Up @@ -299,6 +302,7 @@

<v-row>
<v-select
attach
:menu-props="{ left: true }"
:items="ext_type_items"
v-model="ext_type_selected"
Expand Down

0 comments on commit cc31e7e

Please sign in to comment.