NotificationEventBuilder
Methods
Hide(System.String)
Defines the handler of the Hide client-side event. 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.
RETURNS
Returns the current instance of NotificationEventBuilder .
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events => events.Hide("onHide"))
)
Hide(System.Func)
Defines the handler of the Hide client-side event. 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.
RETURNS
Returns the current instance of NotificationEventBuilder .
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events => events.Hide(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
Show(System.String)
Defines the handler of the Show client-side event. 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.
RETURNS
Returns the current instance of NotificationEventBuilder .
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events => events.Show("onShow"))
)
Show(System.Func)
Defines the handler of the Show client-side event. 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.
RETURNS
Returns the current instance of NotificationEventBuilder .
Example
@( Html.Kendo().Notification()
.Name("Notification")
.Events(events => events.Show(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)