[CLOSED] How to hide a Notification message?

  1. #1

    [CLOSED] How to hide a Notification message?

    Hi,

    Is there any way to manually hide an Ext.net.Notification window?
    Last edited by Daniil; Sep 05, 2014 at 4:17 PM. Reason: [CLOSED]
  2. #2
    Hi Vadym,

    The show method returns a Window instance.
    var win = Ext.net.Notification.show();
    Later:
    win.close();
  3. #3
    Thanks, Daniil!

    What I'm actually looking for is an equivalent of the utility Ext.Msg.hide() call that would close all visible instances of Notification windows on the page. Otherwise, I would need to store the references to Notification instances in order to call .close() on each one.
  4. #4
    Each notification is a separate Window and Ext.net.Notification doesn't provide access to the internal "notifications" collection (I would say it should)...

    So, I can suggest something like this.
    Ext.ComponentMgr.all.each(function(c) {
        if (c.initialConfig && c.initialConfig.cls && c.initialConfig.cls.indexOf("x-notification") > -1) {
            c.close();
        }
    });
  5. #5
    Thanks again, Daniil! I will apply this workaround, please mark the thread as closed.

Similar Threads

  1. [CLOSED] Is there a Notification Listener for on hide?
    By michaeld in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 19, 2013, 9:41 AM
  2. Replies: 1
    Last Post: Dec 05, 2012, 4:34 AM
  3. [CLOSED] Notification Message box space removal of 4 sides
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 13, 2012, 10:51 AM
  4. [CLOSED] Message notification
    By majunior in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 15, 2011, 1:37 PM
  5. [CLOSED] Notification: hide close button when AutoHide = false
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 16, 2009, 3:10 PM

Tags for this Thread

Posting Permissions