Difference between setText and setProperty (text)?

Is there a specific difference between / or different scenarios where I would want to use setText (id, text) vs setProperty (id, “text”, text) ?

If so, could you please explain?

Thank you for your time.

To my understanding, they both do the same thing. setProperty as a command is simply able to change more than just the text of an element

This is a “a square is a rectangle but a rectangle is not a square” type of moment. setProperty can let you change the “text” property of an element in which case they are essentially the same. I would use the setText as it is more specific and easier to identify when reading through code. But it is not essential to do so!

1 Like

Thank you for your reply, Madeline.

I wanted to make sure I wasn’t missing something, and I very much appreciate your explanation.