Lets say we want to change the text of a button to the logged in user’s first name. We can do this by adding the following attributes to the button element.
Copy
looop_on-login=change-text
Copy
change-text="firstname"
Now if we want to chnage teh text of same button to to say “Logged in” if the user is logged in, we can do this by adding the following attributes to the button element.