Learnining Nowa. Using Beta v2.0.9.
I want to make a component that contains a text string, where in each instance of the component the value of the string can be different.
It appears that I’m supposed to be able to create a variable, and attach it to the text string, then in each instance change the value of the string.
I’ve read the documentation, watched some YouTube videos, experimented several times, and can’t figure out how to accomplish this.
Can anyone help me with this, or point me to instructions that work?
1 Like
anas
2
Hey @BillFernandez first of all I see it’s your first post, so welcome to Nowa
What you need to do is create a parameter
inside the UI component of type String
and connect that parameter to the text property for the Text widget.
Then, when using the component anywhere in the app, you can pass a string to that parameter which will then display that text inside.
During the upcoming week we will release a youtube tutorial on building a Water reminder app from scratch, and it will have this exact usecase