B4J Question [BANano] Using the customElement Web Api

Mashiane

Expert
Licensed User
Longtime User
Hi

How can one create and use the customElements Web Api? I have done a log of BANano.Window, this is accessible but not sure how I can use it with BANano.



This will help in creating my own html tags or extend existing ones. Am thinking about the HTML part of the component be defined via a layout perhaps?

Any help will be appreciated?

Thanks in advance.

PS: Reference

 
Last edited:

Mashiane

Expert
Licensed User
Longtime User
Update... I found an article that speaks about Reflection in javascript.





B4X:
Dim Reflect As BANanoObject = BANano.Window.GetField("Reflect")

Perhaps one could figure something out around extending HTMLElement or something..
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…