Logic Functions
Posted: Fri Apr 17, 2015 6:06 am
Hello,
I want to know how can i show or hide a component according to the logged in user's role or another property?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello,
I want to know how can i show or hide a component according to the logged in user's role or another property?
Hi taucher,
let me try this.
create localstorage for ex. the name of localstorage is UserType
if(localStorage.getItem('UserType')=="ADMIN"){
Appery("SampleToShow").show();
}else{
Appery("SampleToShow").hide();
}
hehe i hope this could help.
Goodluck,
My First Topic - Fastest Response - Solved.
Thank you so much,