Available in the OSS Version
Notifier - Basic Use
This is a basic sample showing the notifier widget.
This sample uses CTP (Community Technical Preview) features. The API and behavior may change when these features are released with full support.
Check out my messages
This sample is designed for a larger screen size.
On mobile, try rotating your screen, view full size, or email to another device.
Code View
Copy to Clipboard
<!DOCTYPE html> <html> <head> <title></title> <!--Ignite UI for jQuery Required Combined CSS Files--> <link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" /> <link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/structure/infragistics.css" rel="stylesheet" /> <script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script> <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> <script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script> <!--Ignite UI for jQuery Required Combined JavaScript Files--> <script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.core.js"></script> <script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.lob.js"></script> </head> <body> <style> div.float { float: left; margin-right: 10px; } div.float label { display: block; line-height: 20px; font-family: 'Open Sans',Arial,sans-serif; font-size: 13px; } select { width: 150px; height: 28px; opacity: 1; } div.buttons { clear:both; } .buttons button { width: 70px; height: 29px; opacity: 1; float:left; margin-right:20px; background-color: rgb(226, 226, 226); } #successEditor1 { margin-top: 20px; margin-bottom: 0px; } @media screen and (max-width: 500px) { div.float { clear: both; } } </style> <h3>Check out my messages</h3> <input id="successEditor1"/> <br /> <br /> <br /> <div> <div class="float"> <label>Message state:</label> <select id="state"> <option value="success" selected>success</option> <option value="info">info</option> <option value="warning">warning</option> <option value="error">error</option> </select> </div> <div class="float"> <label>Message mode:</label> <select id="mode"> <option value="auto" selected>auto</option> <option value="popover">popover</option> <option value="inline">inline</option> </select> </div> <div class="float"> <label>Popover direction:</label> <select id="direction"> <option value="top" selected>top</option> <option value="left">left</option> <option value="right">right</option> <option value="bottom">bottom</option> </select> </div> <div class="buttons"> <br /> <br /> <button id="show"> show</button> <button id="hide"> hide</button> </div> </div> <script> $(function () { $("#successEditor1").igNotifier({ direction: "right", locale: { infoMsg: "Information message.", successMsg: "Success message.", warningMsg: "Warning message.", errorMsg: "Error message." } }).igNotifier("notify", "success"); $("#state").on("change", function myfunction() { var state = $(this).find("option:selected").val(); $("#successEditor1").igNotifier("option", "state", state); }); $("#mode").on("change", function myfunction() { var mode = $(this).find("option:selected").val(); $("#successEditor1").igNotifier("option", "mode", mode); }); $("#direction").on("change", function myfunction() { var direction = $(this).find("option:selected").val(); $("#successEditor1").igNotifier("option", "direction", direction); }); $("#show").on("click", function myfunction() { $("#successEditor1").igNotifier("show"); }); $("#hide").on("click", function myfunction() { $("#successEditor1").igNotifier("hide"); }); }); </script> </body> </html>