Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

How to make action after click on button?

$
0
0

Hello,
I’d like to make a complex page which allows me to read text/options from inputs. First of all I’d like to make a button that invoke a method and pass text from textarea after click on it. This is my code, I don’t want send anything to output. How to do it?

management_page= html.Div([

            dcc.Input(id='name',placeholder='Enter a value...',type='text',value=''),
            html.Button(id='button',value='Click')

])
@app.callback(Output(),[Input('button','value')],
)
def addNew(value):
    addTab(str(value))

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images