1. #121
    Sencha User
    Join Date
    Dec 2012
    Location
    hyderabad
    Posts
    91
    Vote Rating
    0
    javapurna is on a distinguished road

      0  

    Default list of notifications showing

    list of notifications showing


    Hi eirik.lorentsen,
    how to show list of notifications .for suppose 10 notifications coming from database at once (Array[10])

    i am create like below
    Code:
    for(var i=0;i<event.data.length;i++){
    var notification =Ext.create("MotApp.util.Notification", {
      title: 'Notification',
      position: "br",// Options: br, bl, tr, tl, t, l, b, r
      cls: "ux-notification-window ux-notification-success",
      iconCls: "ux-notification-icon-information",
    Code:
      spacing: 15,
      html:event.data[i].message,
      autoCloseDelay: 7000,
    });
    notification.show();		        		}
    
    

    event.data contains Array[10] objects . i am iterating and displaying . but all notifications close at a time.




    )

  2. #122
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Raleigh, NC
    Posts
    420
    Vote Rating
    136
    brian428 is a splendid one to behold brian428 is a splendid one to behold brian428 is a splendid one to behold brian428 is a splendid one to behold brian428 is a splendid one to behold brian428 is a splendid one to behold

      0  

    Default


    If you set them all to close after 7000 ms, then that's when they'll all close.

    Also, showing 10 simultaneous notifications is a really poor UX choice. Either reduce the noise, or combine them into one notification.

  3. #123
    Sencha User
    Join Date
    Oct 2013
    Posts
    9
    Vote Rating
    1
    JK3jp5qMJwKW is on a distinguished road

      0  

    Default


    He released a new version: 2.1.3http://www.eirik.net/Ext/ux/window/Notification.js