New to Kendo UI for jQueryStart a free 30-day trial

ShowText

methods

Displays a plain-text notification.

This is a safer version of the show method that assumes that you want to encode any markup passed in as a message.

Parameters:dataObject|String|Function

Required. The string content for the notification; or the object with the values for the variables inside the notification template; or the function, which returns the required string or an object.

data.closeButton Boоlean If set to false the Notification will not render the close button.
typeString

The notification type. Predefined type values include "base", "primary", "secondary", "tertiary", "info", "success", "warning", "error" and "inverse". Custom types should match the types from the template configuration. If this argument is not supplied, then "base" is assumed.

<span id="notification"></span>
<script>
var notificationWidget = $("#notification").kendoNotification().data("kendoNotification");

notificationWidget.showText("foo text", "warning");
</script>
<span id="notification"></span>
<script>
function getNotificationMessage() {
    return "foo text";
}

var notificationWidget = $("#notification").kendoNotification().data("kendoNotification");

notificationWidget.showText({
    closeButton: false,
    content: "Welcome to the Application",
    type: "warning"
});
</script>
<span id="notification"></span>
<script>
    let notificationWidget = $("#notification").kendoNotification({
        button: false,
    }).data("kendoNotification");

    notificationWidget.showText({
        closeButton: true, //show the close button
        content: "Welcome to the Application"
    },
    "warning");
</script>
Not finding the help you need?
Contact Support