Does streamlit support button click and callback from an html button inside st.html()?

Hello there,
I have written the following code inside st.html() elements, which runs mutiptle time using a loop.

                       <body>
                            <div class="row">
                                <div class="column">
                                    <span class="meta-name">Meta Name 1</span>
                                </div>
                                <div class="column">
                                    <span class="meta-count">10</span>
                                </div>
                                <div class="button-column">
                                    <button onclick="myfunc()">Submit</button>
                                </div>
                            </div>
                        </body>
                        </html>

But I can’t call any function using this button.
Do I have to depend on st.button only for callbacks ?

image

html #st.html :balloon: Using Streamlit button

Read the html api capability at this time. It does not support executing javascript.

1 Like