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.

1694941192206.png


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.


1694959098328.png



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

Perhaps one could figure something out around extending HTMLElement or something..
 
Upvote 0
Top