Let’s say I have a string, like var s = “hello, I’m so very very happy”
and I want all the vowels to be in the color red, rendered using one of the controls. (Using HTML, this would be easy by surrounding each vowel with a span tag.)
How can I do this using Fuse?
Pete
Charlotte, NC, USA
In .js :
You can parse each letter of the string into an array, and mark each letter whether it’s vowel or consonant.
In .ux :
Iterate the array inside <WrapPanel>
, then print each letter using <Text>
the answer froms @uldis in this thread https://www.fusetools.com/community/forums/permalink/a7f19970-b7a9-4d09-a010-8c5f482da001 might help you as well.
Hope it helps.