<?php require_once '../include/header.php'; require_once '../lib/Kendo/Autoload.php'; ?> <?php $position = new \Kendo\UI\NotificationPosition(); $position->top(30); $position->left(30); $popupNotification = new \Kendo\UI\Notification('popupNotification'); $popupNotification->position($position); $popupNotification->button(true); echo $popupNotification->render(); $staticNotification = new \Kendo\UI\Notification('staticNotification'); $staticNotification->appendTo('#appendto'); $staticNotification->button(true); echo $staticNotification->render(); ?> <div class="k-rtl"> <div class="demo-section"> <div id="appendto" class="k-block"></div> <h3>Show notification:</h3> <p> <button id="showPopupNotification" class="k-button">As a popup at top-left</button> <br /> <button id="showStaticNotification" class="k-button">Static in the left panel</button> </p>
<?php $position = new \Kendo\UI\NotificationPosition(); $position->pinned(true); $position->top(30); $position->right(30); $infoTemplate = new \Kendo\UI\NotificationTemplate(); $infoTemplate->type('info'); $infoTemplate->templateId('emailTemplate'); $errorTemplate = new \Kendo\UI\NotificationTemplate(); $errorTemplate->type('error'); $errorTemplate->templateId('errorTemplate'); $uploadSuccess = new \Kendo\UI\NotificationTemplate(); $uploadSuccess->type('upload-success'); $uploadSuccess->templateId('successTemplate'); $notification = new \Kendo\UI\Notification('notification'); $notification->position($position); $notification->autoHideAfter(0); $notification->stacking("down"); $notification->addTemplate($infoTemplate); $notification->addTemplate($errorTemplate); $notification->addTemplate($uploadSuccess); echo $notification->render(); ?> <span id="notification" style="display:none;"></span> <div class="demo-section"> <h3>Show notification:</h3> <p> <button id="showEmailNotification" class="k-button">Email Notification</button>