XUL:notificationbox
z Mozilla Developer Center, polskiego centrum programistów Mozilli.
« Dokumentacja XUL [ Przykłady | Atrybuty | Własności | Metody | Podobne ]
<notificationbox> jest stosowana do powiadomień powyżej elementu. Zazwyczaj element będzie przeglądarką, ale jakikolwiek element może być zastosowany. Element <notification> jest stosowany dla każdego powiadomienia i będzie tworzony automatycznie dla każdego elementu. Każde powiadomienie będzie zsuwać się do i na zewnątrz, jak będzie potrzebne.
Pudełko jest pudełkiem pionowym, które posiada dzieci. Powiadomienie wyświetla się na górze pudełka. Powiadomienie może być ustawione na dole atrybutu na "reverse".
- Własności
- currentNotification, allNotifications, notificationsHidden
- Metody
- appendNotification, agetNotificationWithValue, removeAllNotifications, removeCurrentNotification, removeNotification,
[edytuj] Przykłady
<notificationbox flex="1"> <browser src="http://www.mozilla.org"/> </notificationbox>
[edytuj] Atrybuty
|
Dziedziczy z elementu XUL |
[edytuj] Własności
- currentNotification
- Typ: element powiadomienia
- Aktualnie wyświetlany element notification lub null. Własność tylko do odczytu.
- allNotifications
- Typ: nodeList
- NodeList of all notifications. This property is read-only.
- notificationsHidden
- Typ: boolean
- indicating whether the notification area should be hidden.
[edytuj] Metody
|
Dziedziczy z elementu XUL Dziedziczy z elementu DOM |
UWAGA: Tłumaczenie tej strony nie zostało zakończone.
Może być ona niekompletna lub wymagać korekty.
Chcesz pomóc? | Dokończ tłumaczenie | Sprawdź ortografię | Więcej takich stron...
- appendNotification ( label , value , image , priority , buttons )
- Zwraca typ: 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.
- 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
- Buttons :
- The buttons argument is an array of button descriptions. Each description is an object with the following properties:
- accessKey - the accesskey to appear on the button
- callback - function to be called when the button is activated. This function is passed two arguments:
- the <notification> the button is associated with
- the button description as passed to appendNotification.
- label - the label to appear on the button
- popup - the id of a popup for the button. If null, the button is a button popup.
- getNotificationWithValue ( value )
- Zwraca typ: element powiadomienia
- Retrieve the notification with a particular value. The value is specified when adding the notification with appendNotification. If no matching value is found, returns null.
- removeAllNotifications ( immediate )
- Zwraca typ: brak
- Usuwa wszystkie powiadomienia. If immediate is true, the messages are removed immediately. If immediate is false, the notifications are removed using a slide transition.
- removeCurrentNotification
- Zwraca typ: brak
- Usuwa bieżące powiadomienie.
- removeNotification ( item )
- Zwraca typ: element
- Usuwa powiadomienie, wyświetla kolejne, jeśli bieżące zostało usunięte.
[edytuj] Podobne
- Elementy
- notification