MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / toggle_input_panel_style

Function toggle_input_panel_style

webiojs/src/ui.ts:46–61  ·  view source on GitHub ↗
(fixed: boolean)

Source from the content-addressed store, hash-verified

44
45
46function toggle_input_panel_style(fixed: boolean) {
47 fixed = state.FixedInputPanel && fixed;
48 if (!fixed) {
49 input_panel.removeClass('fixed');
50 end_space.height(0);
51 input_panel.height('unset');
52 } else {
53 let min = fixed_input_init_height();
54 end_space.height(min - 40); // 40 = #input-container.fixed padding-top
55 input_panel.height(min);
56 // input_panel显示动画
57 // input_panel.height(0);
58 // input_panel.stop().animate({height: min}, {duration: 50, easing: 'swing'});
59 input_panel.addClass('fixed');
60 }
61}
62
63
64function move_input_panel(step: number) {

Callers 2

show_inputFunction · 0.85
ui.tsFile · 0.85

Calls 1

fixed_input_init_heightFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…