showToast(
"Lorem ipsum dolor sit amet consectetur adipisicing elit.
Veritatis accusantium possimus, numquam soluta odit quos iste,
veniam quo cumque itaque vel! Autem soluta in sit voluptates ullam quos hic voluptatem!",
"success"
);
showToast("You clicked on Link 2", "verified", 2);
showToast("You clicked on Link 3", "dark", 12);
showToast("You clicked on Link 4", "error");
showToast("You clicked on Link 5", "");
initiate_popup({'target': '#form-popup', 'overlay_color':'rgba(0,0,0,0.65)', 'popup_type': 'form-popup', 'popup_max_height': '500px'});
initiate_popup({'target': '#alert-popup', 'overlay_color': 'rgba(0,0,0,0.65)', 'popup_type': 'alert-popup'});
initiate_popup({'target': '#scroll-popup', 'overlay_color': 'rgba(0,0,0,0.65)'});
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| Row 1, Cell 1 | Row 1, Cell 2 | Row 1, Cell 3 |
| Row 2, Cell 1 | Row 2, Cell 2 | Row 2, Cell 3 |
| Row 3, Cell 1 | Row 3, Cell 2 | Row 3, Cell 3 |
initiate_popup({'target': '#plan-popup', 'overlay_color': 'rgba(0,0,0,0.65)'});initiateSplideElements()
initiate_popup({'target': '#slidein-popup', 'popup_type': 'slidein-popup'});
initiate_popup({'target': '#force-slidein-popup', 'popup_type': 'force-slidein-popup'});
initiate_popup({'target': '#prevent-close-popup', 'prevent_close': true});
initiate_popup({'target': '#toggle-width-popup', 'popup_full_width_mode': true});
Lorem ipsum dolor sit amet, consectetur adipisicing elit. At, minima!
initiate_popup({'target': '#narrow-mobile-popup', 'popup_type': 'narrow-mobile-popup'});
Hello World
initiate_popup({'target': '#cookie-popup', 'popup_type': 'cookie-popup', 'cookie_name': 'example_cookie', 'cookie_expiration': 'Fri, 31 Dec 9999 23:59:59 GMT', 'prevent_close': false});
initiate_popup({'target': '#timer-popup','popup_time_delay': 2});
Hello World
initiate_popup({ 'target': '#scroll-trigger-popup', 'popup_scroll_trigger': true, 'popup_top_space': '500px'});
onclick="initiate_popup({'target': '#centered-popup', 'popup_position': 'centered'});
All the popups (that exceeds page height) are scrollable from outside by default
initiate_popup({'target': '#form-popup', 'overlay_color':'rgba(0,0,0,0.65)'});
initiate_popup({'target': '#fadein-popup','popup_animation_type': 'animate-fade-in', 'popup_position': 'centered'});
initiate_popup({'target': '#slide-in-up-popup','popup_animation_type': 'animate-slide-down', 'popup_position': 'centered'});
initiate_popup({'target': '#bounce-popup','popup_animation_type': 'animate-bounce-in', 'popup_position': 'centered'});
| Argument | Description | Custom values | Default Values | Required |
|---|---|---|---|---|
| "target" | The ID of the popup. | Any | false | Yes |
| "overlay_color" | The background color of the popup overlay. | Any | "rgba(0,0,0,0.65)" | Optional |
| "popup_type" | Specifies the type or variation of the popup. |
|
"default" | Optional |
| "cookie_name" | The name of the cookie used in cookie popups. Only applicable when `popup_type` is 'cookie-popup'. | Any | "example_cookie" | Yes (For cookie) |
| "cookie_expiration" | The expiration duration for the cookie used in cookie popups. Only applicable when `popup_type` is 'cookie-popup'. | Any | "Fri, 31 Dec 9999 23:59:59 GMT" | Yes (For cookie) |
| "prevent_close" | Prevent popup from closing. |
|
false | Optional |
| "popup_time_delay" | Delay time to open the popup (Value should be in number) | Any | 0 | Optional |
| "popup_scroll_trigger" | Opens popup on scrolling down the page |
|
false | Optional |
| "popup_top_space" | Pixels or percentage from top to trigger popup. Value should be a string and the unit should be '%' or 'px'. Ex: '100px', '10%' | Any | "500px" | Yes (if popup scroll trigger is true) |
| "popup_animation_type" | Adds popup opening animation type. |
|
false | Optional |
| "popup_position" | Updates the popup position and height. If 'centered' selected, popup will be positioned 'center center' and will have limited height. Else it will be aligned from top and scrollable from outside. | 'centered' | false (scrollable) | Required for positioning |
| "popup_max_height" | The max-height of the popup container. |
|
'none'. '500px' if 'popup_position' is 'centered' |
Optional |
| "popup_over_popup" | Updatess styles for the popups that is placed over another popup | true | false | Required (if popup is placed on another popup) |
Custom values: If not 'Any', only specified values can be added as custom values.
Default values: These values will be added if no custom values are added.