Javascript (button onclick) within HTML component

I´ve built a html component which shows data from SQL in the way I wanted.
Now I want to add some action.

I´ve placed an button and the only thing I want is that when you click it, a drawer should be opened.

What do I miss here?

1 Like

Hi @TomJaud, our HTML component supports most HTML tags presentational attributes, but only supports scripting in a limited capacity: click and change events but for the component as a whole, not for nested HTML elements.

On the other hand, you can build this functionality with Custom components.

You can pass data between your Retool app and your component: