B4J Question [BANano] [SOLVED] How to remove a BANanoElement Style ?

alwaysbusy

Expert
Licensed User
Longtime User
No, RemoveStyle is not a thing in JavaScript. You will have to access the style property I would guess. Note that doing this is not commenly done. One would use style classes for that and just swap/add/remove them.

Something like this could work: (Untested)
B4X:
mElement.GetField("style").RunMethod("removeProperty", Array("background-color"))
 
Upvote 0
Top