B4J Question [BANano] SKTextBox add suffix (solved)

angel_

Well-Known Member
Licensed User
Longtime User
How can you add a suffix at the end of the text like: km, @gmail.com...
 
Solution
Thank you for the donation!

- I can add the suffix by code if the SKTextBox was added in the abstract designer?
No, the decision what type you want to use has to be made before it is added to the DOM. So either it has a suffix, or it does not. This is because in html it needs wrapper tags around the input.

- Is it possible to add suffix and keep label, either by code or in abstract designer?
Currently no. I will have to look into the lib to see if it is possible. I think using an extra SKLabel is probably your best solution for now.

angel_

Well-Known Member
Licensed User
Longtime User
Perfect thanks, just two more questions:

- I can add the suffix by code if the SKTextBox was added in the abstract designer?
- Is it possible to add suffix and keep label, either by code or in abstract designer?

[Donation made, Id. 61F395640G0886608, great BANano!!]
 
Last edited:
Upvote 0

alwaysbusy

Expert
Licensed User
Longtime User
Thank you for the donation!

- I can add the suffix by code if the SKTextBox was added in the abstract designer?
No, the decision what type you want to use has to be made before it is added to the DOM. So either it has a suffix, or it does not. This is because in html it needs wrapper tags around the input.

- Is it possible to add suffix and keep label, either by code or in abstract designer?
Currently no. I will have to look into the lib to see if it is possible. I think using an extra SKLabel is probably your best solution for now.
 
Upvote 0
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…