You need to sign in to do that
Don't have an account?
Amanda Benzon 15
Lightning Component for Community display text when button is clicked
Hi All,
I am new to creating custom lightning components and I am trying to create a button/link in a Community so that when the button/link is clicked a string of text is shown below the button. How can I accomplish this? Thank you in advance!
I am new to creating custom lightning components and I am trying to create a button/link in a Community so that when the button/link is clicked a string of text is shown below the button. How can I accomplish this? Thank you in advance!
For example:
LWC HTML: LWC JS:
All Answers
For example:
LWC HTML: LWC JS:
The requirement will be solved with your code. but I feel it is good to use '@track' decorator because if any data changes in the javascript it should reflect back to the HTML page. what is your opinion on this?
Happy to receive comments.