XUL:notification
出典: MDC
« XUL リファレンス HOME [ 例 | 属性 | プロパティ | メソッド | 関連項目 ]
notification は有益なメッセージを表示するために使用します。通常は notificationbox の一部として使用されます。
- プロパティ
- accessibleType, control, image, label, priority, persistence, type, value
- メソッド
- close
[編集] 例
<notification label="This is a warning"/>
[編集] 属性
|
XUL 要素からの継承 |
- label
- 型: string
- 要素上に表示するlabel。 省略された場合、テキストは表示されない。
- persistence
- 型: integer
- persistence を 0 以外の値に設定すると、notificationbox の removeTransientNotifications メソッドはそれらを削除しません。これは、他の notification には影響を与えずに notification のグループを閉じるために使用します。
- priority
- 型: integer
- notification が現れる順番を指定する数値。これは notificationbox の appendNotification メソッド内に記述された定数の一つでなければなりません。
- type
- 型: 下記の値のいずれか一つ
- priority から決定される notification の種類を指示します。
info: 重要性の低い通知。warning: 通常の警告通知。critical: 重大な通知。
- value
- 型: 文字列
- 文字列の属性はデータ値を要素に関連付けます。特定の目的のために使われるわけではありませんが、スクリプトからあなた自身の用途のためにアクセスできます。
[編集] プロパティ
|
XUL 要素からの継承 DOM 要素からの継承 |
- accessibleType
- 型: integer
- 要素の accessibility オブジェクトの種類を示す値。
- persistence
- 型: integer
- persistence 属性の値の取得と設定。
[編集] メソッド
- close
- 戻り値の型: none
- notification を閉じ、これを内包する notificationbox から削除します。