-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
It seems that the type option of the Input class is not doing anything.

Code:
import dash
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash(__name__)
app.layout = html.Div(
[
dcc.Input(id='input', type='int'),
html.Div(id='output')
]
)
@app.callback(
dash.dependencies.Output('output', 'children'),
[dash.dependencies.Input('input', 'value')]
)
def callback(value):
return ['Output is: {} of type {}'.format(value, type(value))]
app.run_server(debug=True)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels