B4J Question [SOLVED][BANanoReact] CSS Class

micro

Well-Known Member
Licensed User
Longtime User
from https://www.b4x.com/android/forum/threads/bananoreact-lets-please-build-a-community-project.108790/

React on the other hand works differently, there is an attribute called 'className' that is a replica of the 'class' attribute that should do the same.

As someone who is also experimenting on this React experiment with BANano, please let me revert back after I check your code. I'm sure we will find a solution.
I had already tried to insert the class in ClassName but not work.
 

Mashiane

Expert
Licensed User
Longtime User
@micro , is this what you expected? If so, I found the bug, the SetClassName method was not being set.

ReactExample.gif


I had not even explored inline CSS for BANanoReact, thanks for exploring this project. I think your input will add a lot of value to this when you explore it. Thanks a mill and keep it up!!

Ta:

PS: I have updated the repo, this is in pgLesson04. Please also mark the question as [SOLVED] if your issue is resolved. Thanks.

https://github.com/Mashiane/BANanoReActApp
 
Last edited:
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
Hi
surely I still have to practice with js and html but there seems to be a problem in Sub ItemClick in pgLesson4.
The raised event does not get the key value.

With:
BANano.Msgbox($"Event: ${e.key}"$)
Get
Event: undefined
With:
BANano.Msgbox(e)
Get
[object Object]

where am I wrong?
Thanks
 
Upvote 0
Top