@JoseMarqueses wrote:
why external links doesnt work??
CODE:
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output, State import dash_bootstrap_components as dbc import visdcc import datetime import pandas as pd import dash_dangerously_set_inner_html external_scripts = ['https://demos.jquerymobile.com/1.4.2/js/jquery.mobile-1.4.2.min.js', 'https://demos.jquerymobile.com/1.4.2/js/jquery.js'] external_stylesheets = ['https://demos.jquerymobile.com/1.4.2/css/themes/default/jquery.mobile-1.4.2.min.css'] app = dash.Dash(__name__,external_scripts = external_scripts, external_stylesheets = external_stylesheets) app.layout = html.Div([ visdcc.Run_js(id = 'javascript'), html.Div([ dcc.Input( type="range", min=0, max=100, value=40, ), dcc.Input( type="range", min=0, max=100, value=40, ) ],**{'data-role':'rangeslider'}) ]) """@app.callback( Output('javascript','run'), [Input('input1','value'), Input('input2','value')] ) def kk(value1,value2): print("1") return value1""" if __name__ == '__main__': app.run_server()
Source from:
https://codepen.io/Pierre_Hamel/pen/ocJEH
Posts: 1
Participants: 1