Forum Stats

  • 3,876,226 Users
  • 2,267,082 Discussions
  • 7,912,474 Comments

Discussions

how to delay or dont fade the success message?

T101_cyberdyne
T101_cyberdyne Member Posts: 54
edited Nov 18, 2013 3:59AM in APEX Discussions

Hi,

I'm using Apex version 4.2.2. I've noticed that error messages do not fade away and only disappear if we click the 'x'. how could i achieve that with the success message? i would like to know how i could delay AND remove the auto fade. after that i would be able to decide which one suits me best. i tried referring here to make the delay but it doesnt seem to work:

https://forums.oracle.com/message/11159689#11159689

Could it be possible and if so,where could i edit it?

Thanks.

T101_cyberdyne

Best Answer

  • vincent_deelen
    vincent_deelen Member Posts: 402
    Answer ✓

    Hi,

    I once had a situation in which in needed to change the fade out time of the success messages. You can find code here: https://gist.github.com/vincentdeelen/7516812

    In the setTimeout of that function, the 4000 is the time in mili seconds that the message stays on the screen. You can change that value to your own liking.

    If you do not want the successmessage to fade away at all, you can create an overload of the function like this:

    autoFadeSuccess = function(){return true; };

    Kind regards,

    Vincent

    T101_cyberdyne
«1

Answers

This discussion has been closed.