Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬Register for the Oct 27 webinar.

html.Button: what does 'value' keyword do?

Hey guys,
I’m trying to change the text inside a button with a slider.
My understanding was that I could do it with the keyword ‘value’.

@app.callback(Output('button1','value'),
              [Input('slider1','value')])
 def changeSliderValue(value):
    buttontext = "Button 1 " + str(value) 
    return buttontext

but this doesn’t have any effect.