Plugin - KendoUI - Notification

声明

@(Html.Kendo().Notification()
    .Name("notification_login")
    .Position
    (
        // 固定
        p => p.Pinned(false)
    )
    // 叠堆方向
    .Stacking(NotificationStackingSettings.Down)
    // 自动隐藏时间, 设置为 0 表示不自动隐藏
    .AutoHideAfter(3)
    .Templates(t =>
    {
        // 模板
        t.Add().Type("logining").ClientTemplateID("template_logining");
    })
)

 

方法

var notification = $("#notification").data("kendoNotification");
notification.show({ title:
"New E-mail", message: "You have 1 new mail message!" }, "info");
posted @ 2015-08-25 11:43  `Laimic  阅读(348)  评论(0)    收藏  举报