NotificationEventBuilder
Methods
Hide(System.String)
Fires when a notification's hiding animation starts.
For more information see Hide event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the hide event.
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events => events.Hide("onHide"))
)
Hide(System.Func)
Fires when a notification's hiding animation starts.
For more information see Hide event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events => events.Hide(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
Show(System.String)
Fires when a notification's showing animation starts.
For more information see Show event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the show event.
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events => events.Show("onShow"))
)
Show(System.Func)
Fires when a notification's showing animation starts.
For more information see Show event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events => events.Show(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)