You need to sign in to do that
Don't have an account?
edukondalu thodeti
how to hide and show the results when click on the same button in lightning
i need to hide and show the result when click on the same button,first when i click on the button i need to hide the result and whenever i click on the same button again i need to show the result.i didnot know which component,action to be used for these task.
pls anyone help me i'm new to the lightning
these is my result when i click on the button first time:
whenever i click on the same button again i need to got the result like these
pls anyone help me i'm new to the lightning
these is my result when i click on the button first time:
whenever i click on the same button again i need to got the result like these
You can create a boolean variable like showResultSection and on click of the button you can check if this button is false than set it to true and if true than set it to false. Sample code is written below:
.cmp
Controller
Please take care of the syntax errors and let me know if you need any further help on this.
Thanks,
Abhishek Bansal.