I want to create a custom layout with two distinct buttons, one for the user settings and the other for the logout task
The Logout button in a custom ext-main screen is implemented with the following code
<logoutButton id="logoutButton" icon="app/images/exit.png" align="MIDDLE_CENTER"></logoutButton>
There is some trick for the settings button or the issue can be solved with the Route API?
krivopustov
(Konstantin Krivopustov)
#2
Not sure I completely understood your question.
Do you want to know how to handle “Settings” button? See cuba/MainScreen.java at release_7_2 · cuba-platform/cuba · GitHub
I want to create two simple buttons in a custom menù with logout and user settings functions
krivopustov
(Konstantin Krivopustov)
#4
So you can create a button and in its click handler open the settings
screen using the screens API as the code I mentioned above does.