mozilla

Revision 63985 of appendNotification

  • Revision slug: XUL/Method/appendNotification
  • Revision title: appendNotification
  • Revision id: 63985
  • Created:
  • Creator: 2bass
  • Is current revision? No
  • Comment add arguments

Revision Content

{{template.XULRefMeth()}}
{{template.XULMeth2("appendNotification", "( label , value , image , priority , buttons )")}}
Return type: element
Create a new notification and display it. If another notification is already present with a higher priority, the new notification will be added behind it.
Arguments :
  • label - label to appear on the notification
  • value - value used to identify the notification
  • image - URL of image to appear on the notification
  • priority - notification priority, see Priority Levels.
  • buttons - array of button descriptions to appear on the notification, see below for details.
Priority Levels :
  • PRIORITY_INFO_LOW
  • PRIORITY_INFO_MEDIUM
  • PRIORITY_INFO_HIGH
  • PRIORITY_WARNING_LOW
  • PRIORITY_WARNING_MEDIUM
  • PRIORITY_WARNING_HIGH
  • PRIORITY_CRITICAL_LOW
  • PRIORITY_CRITICAL_MEDIUM
  • PRIORITY_CRITICAL_HIGH
  • PRIORITY_CRITICAL_BLOCK

Revision Source

<div class="noinclude">{{template.XULRefMeth()}}</div>
<dl><dt> {{template.XULMeth2("appendNotification", "( label , value , image , priority , buttons )")}}
</dt><dd> Return type: <i>element</i>
</dd><dd> Create a new notification and display it. If another notification is already present with a higher priority, the new notification will be added behind it.
</dd></dl>
<dl><dd><b>Arguments</b> :
</dd></dl>
<ul><li> label - label to appear on the notification
</li><li> value - value used to identify the notification
</li><li> image - URL of image to appear on the notification
</li><li> priority - notification priority, see Priority Levels.
</li><li> buttons - array of button descriptions to appear on the notification, see below for details.
</li></ul>
<dl><dd><b>Priority Levels</b> :
</dd></dl>
<ul><li>PRIORITY_INFO_LOW
</li><li>PRIORITY_INFO_MEDIUM
</li><li>PRIORITY_INFO_HIGH
</li><li>PRIORITY_WARNING_LOW
</li><li>PRIORITY_WARNING_MEDIUM
</li><li>PRIORITY_WARNING_HIGH
</li><li>PRIORITY_CRITICAL_LOW
</li><li>PRIORITY_CRITICAL_MEDIUM
</li><li>PRIORITY_CRITICAL_HIGH
</li><li>PRIORITY_CRITICAL_BLOCK
</li></ul>
Revert to this revision