sanket
sanket

Reputation: 789

Codenameone SpanButton uiid not working

I created a form initially with a normal Button and applied a uiid to the button. This was working. Now when I change the button to a SpanButton, the uiid stops working. Is there anything that I am missing here ?

Upvotes: 0

Views: 43

Answers (1)

Shai Almog
Shai Almog

Reputation: 52770

SpanButton is a composite component, this effectively means it is composed of several separate components and when you change its UIID you only change the UIID of the parent container and not the individual elements within it.

You need to also use setTextUIID & setIconUIID.

Upvotes: 0

Related Questions