문제

I am trying to create mobile application using Phonejs. So far things are working. But now I need to implement authorization in mobile application. So, based on User rights navigation menu will be displayed. So, as per documentation I can give navigation menu once in the starting of the application. At the time of initializing the application. But now I can't find a way to access it or even a documentation on it.

Either I just need to disable few menu based on user role or if I can remove it, that will be even better. I am using simple layout; the predefined one.

Please let me know if any further details is required.

도움이 되었습니까?

해결책

You can hide navigation menu item by:

MyApplication.app.navigation[0].option('visible', false);

See this..

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top