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

    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
    483
    Vote Rating
    435
    brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of brian428 has much to be proud of

      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

  4. #124
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    69
    Vote Rating
    6
    SurenderBhyan1 is on a distinguished road

      0  

    Default

    Hi Erik,
    Great Job

    one query:
    How I can constraint notification with in window screen as my requirement is to show multiple notification based on a loop counter.


    https://fiddle.sencha.com/#fiddle/t52
    Surender Bhyan
    Mohali



  5. #125
    Sencha User eirik.lorentsen's Avatar
    Join Date
    Aug 2011
    Location
    Santiago, Chile
    Posts
    34
    Vote Rating
    7
    eirik.lorentsen is on a distinguished road

      0  

    Default

    If by constraint you mean keeping them all visible within the window at the same time, then you need to adjust the width making them smaller. The notifications can not overlap or spread out over multiple lines. You could also rotate the entry point. Entring the first in the br corner, the second in the bl corner etc.


    Quote Originally Posted by SurenderBhyan1 View Post
    Hi Erik,
    Great Job

    one query:
    How I can constraint notification with in window screen as my requirement is to show multiple notification based on a loop counter.


    https://fiddle.sencha.com/#fiddle/t52

  6. #126
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    69
    Vote Rating
    6
    SurenderBhyan1 is on a distinguished road

      0  

    Default

    Thank you Erik,
    Entry points and useXAxis config are nice choice and I understand notification should contains short messages. But In my case I have messages are of varying length and long one and at the same time there can be multiple notification so I need to move them automatically in another column if notification goes out of screen. I don' want to go with entry point here.

    Below are two Screenshot, these will clear my requirement


    Screenshot 1: Happening Now
    Notifications_1.png


    Screenshot 2: Requirement
    Notifications.png



    Thank you for assistance in getting my experience to a higher level
    Surender Bhyan
    Mohali