Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JFXDrawer hide/show events #21

Closed
rjahn opened this issue Nov 5, 2015 · 5 comments
Closed

JFXDrawer hide/show events #21

rjahn opened this issue Nov 5, 2015 · 5 comments

Comments

@rjahn
Copy link

rjahn commented Nov 5, 2015

It would be useful to know that hide/show is finished.
Use-case: SidePane is visible and contains a logout button. Logout will remove the content of the sidepane. But if we remove the content immediately after hide() call, the user is able to see the empty side-pane.

A callback or listener or hide(function) would help....

@jfoenixadmin
Copy link
Collaborator

its already implemented, plz check the methods setOnDrawerClosed,setOnDrawerOpened.
Moreover, you can call the method isShown that returns true if the drawer is drawn else it will return false.

@rjahn
Copy link
Author

rjahn commented Nov 5, 2015

right, both events exist but at least onDrawerClosed doesn't work as expected because hide method fires onDrawerClosedProperty.get().handle(new JFXDrawerEvent(JFXDrawerEvent.CLOSED)); as last statement.

The transition isn't finished at this point.

I didn't test onDrawerOpenedProperty.

@jfoenixadmin
Copy link
Collaborator

please test on the latest version of JFoenix, as we recently fixed the timing issue.

@rjahn
Copy link
Author

rjahn commented Nov 5, 2015

shame on me - works as expected!

@IGSonko
Copy link

IGSonko commented Aug 25, 2018

salut, je demande de l'aide conncernant la methode isShown() de JFXDrawer. elle est soulignée en rouge chez moi et empeche la compilation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants