Skip to content

Commit 12ee33e

Browse files
committed
use TomSelect for graphplot
1 parent a37c07a commit 12ee33e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

NetworkDynamicsInspector/assets/app.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ body {
1313
box-sizing: border-box;
1414
}
1515

16+
.ts-dropdown .optgroup-header{
17+
font-weight: bolder;
18+
}
19+
.ts-dropdown .option{
20+
font-family: monospace !important;
21+
}
22+
.ts-dropdown .option.selected{
23+
background-color: #dddd;
24+
}
25+
1626
.select2-container .select2-selection .select2-selection__rendered,
1727
.select2-container .select2-selection--single .select2-selection__rendered,
1828
.select2-container .select2-results__option{

NetworkDynamicsInspector/src/graphplot.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function gpstate_control_card(app, type)
284284
options[] = gen_state_options(_nw, idxs)
285285
nothing
286286
end
287-
multisel = MultiSelect(options, stateobs; placeholder="Select state for coloring", multi=false, T=Symbol)
287+
multisel = TomSelect(options, stateobs; placeholder="Select state for coloring", multi=false, T=Symbol)
288288
reltoggle = ToggleSwitch(value=stateobs_rel, label="Rel to u0")
289289
selector = Grid(
290290
DOM.span(label),

0 commit comments

Comments
 (0)