Hi, I am new to power apps component framework and typescript. I am trying to create a button in type script and add the click listener to the button. I could manage to create a button by calling document.create Element("button");
1. Could you please help me about how should i add a click listener to the button.
Also, i could see the button in the web page http://127.0.0.1:8181/
2. When i import that component in power apps, i could not see the button in power apps, I am not sure what i am doing wrong.
I am sure that i am importing it correct, because i tried to create a sample components from the Microsoft documentation, i could see the TS Linear Input Component in the web page, also in power apps.
Please could some one assist me
Thanks in Advance