mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 02:57:24 +08:00
Add test for the new styling object
This commit is contained in:
2
jquery.pnotify/index.d.ts
vendored
2
jquery.pnotify/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for jquery.pnotify 3.x
|
||||
// Project: https://github.com/sciactive/pnotify
|
||||
// Definitions by: David Sichau <https://github.com/DavidSichau>
|
||||
// Definitions by: David Sichau <https://github.com/DavidSichau>, Robin Maenhaut <https://github.com/FUNExtreme>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="jquery"/>
|
||||
|
||||
@@ -243,5 +243,24 @@ function test_pnotify() {
|
||||
animation: 'show'
|
||||
});
|
||||
|
||||
new PNotify({
|
||||
title: 'Custom styling',
|
||||
text: 'Test all custom styling properties',
|
||||
styling: {
|
||||
container: "alert",
|
||||
notice: "alert-warning",
|
||||
notice_icon: "fa fa-exclamation-circle",
|
||||
info: "alert-info",
|
||||
info_icon: "fa fa-info",
|
||||
success: "alert-success",
|
||||
success_icon: "fa fa-check",
|
||||
error: "alert-danger",
|
||||
error_icon: "fa fa-warning",
|
||||
closer: "fa fa-times",
|
||||
pin_up: "fa fa-pause",
|
||||
pin_down: "fa fa-play"
|
||||
}
|
||||
});
|
||||
|
||||
PNotify.removeAll();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user