-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcallbacks.py
More file actions
27 lines (22 loc) · 732 Bytes
/
callbacks.py
File metadata and controls
27 lines (22 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from dash import callback_context
from dash.dependencies import Input, Output
from dash_table import FormatTemplate
from dash_table.Format import Format
import backend as be
def register_callbacks(app):
@app.callback(
[Output('fv-output', 'children')],
[Input('pv-input', 'value'),
Input('n-input', 'value'),
Input('i-input', 'value')]
)
def update_de_vp_para_vf(vp, n, i):
return be.de_vp_para_vf(vp, n, i),
@app.callback(
[Output('su-output', 'children')],
[Input('pv-input', 'value'),
Input('n-input', 'value'),
Input('i-input', 'value')]
)
def update_de_vp_para_su(vp, n, i):
return be.de_vp_para_su(vp, n, i),