1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 07:42:40 +01:00
phorge-phorge/webroot/rsrc/js/application/uiexample
epriestley e00d3b72fe Improve the implementation of Notifications
Summary:
Currently, you can't change a notification that's already shown. There's no reason for this.

(I'm planning to put file upload progress/errors in notifications.)

  - Make `setContent()` and `setDuration()` immediately affect the notification.
  - When there are more than 5 notifications, queue them up instead of dropping them.
  - Allow arbitrarily many classes to be added/removed.
  - Make the examples in the UIExamples tests more rich.

Test Plan:
  - Verified normal notifications continue to function as expected.
  - Played with the UIExamples notifications:
    - Verified the "update every second" notification udpated every second.
    - Verified the permanent alert notification was yellow and requires a click to dismiss.
    - Verified the interactive notification responds correctly to "OK" / "Cancel".
    - Verified the "click every 2 seconds" notification doesn't vanish until not clicked for 2 seconds.

Reviewers: btrahan, vrana

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D3653
2012-10-08 15:22:29 -07:00
..
JavelinViewExample.js Examples using JX.View 2011-11-06 15:17:00 -08:00
notification-example.js Improve the implementation of Notifications 2012-10-08 15:22:29 -07:00
ReactorButtonExample.js Examples using JX.View 2011-11-06 15:17:00 -08:00
ReactorCheckboxExample.js Examples using JX.View 2011-11-06 15:17:00 -08:00
ReactorFocusExample.js Examples using JX.View 2011-11-06 15:17:00 -08:00
ReactorInputExample.js Examples using JX.View 2011-11-06 15:17:00 -08:00
ReactorMouseoverExample.js Examples using JX.View 2011-11-06 15:17:00 -08:00
ReactorRadioExample.js Examples using JX.View 2011-11-06 15:17:00 -08:00
ReactorSelectExample.js Examples using JX.View 2011-11-06 15:17:00 -08:00
ReactorSendClassExample.js Examples using JX.View 2011-11-06 15:17:00 -08:00
ReactorSendPropertiesExample.js Examples using JX.View 2011-11-06 15:17:00 -08:00