PopoverBuilder
Properties
WriteAction - Func
Methods
Animation(System.Boolean)
Configures the animation effects of the popover.
Parameters
enable - System.Boolean
Boolean parameter for setting the Animation configuration.
RETURNS
Returns the current PopoverBuilder instance.
Example
@(Html.Kendo().Popover()
.For("#calendar")
.Filter("td a")
.Position(PopoverPosition.Right)
.ShowOn(PopoverShowOn.Click)
.Animation(true)
)
Animation(System.Action)
Configures the animation effects of the popover.
Parameters
animationAction - System.Action<PopupAnimationBuilder>
Configuration parameter for setting the Animation.
RETURNS
Returns the current PopoverBuilder instance.
Example
@(Html.Kendo().Popover()
.For("#calendar")
.Filter("td a")
.Position(PopoverPosition.Right)
.ShowOn(PopoverShowOn.Click)
.Animation(a => a.Enable(true))
)
For(System.String)
The selector which to match the DOM element to which the Popover widget will be instantiated
Parameters
selector - System.String
jQuery selector
RETURNS
Returns the current PopoverBuilder instance.
Example
@(Html.Kendo().Popover()
.For("#calendar")
.Filter("td a")
.Position(PopoverPosition.Right)
.ShowOn(PopoverShowOn.Click)
)
Body(Kendo.Mvc.UI.Fluent.TemplateBuilder)
Sets the content of the popover body.
Parameters
template - TemplateBuilder<TModel>
The TemplateBuilder for the popover body.
RETURNS
Returns the current PopoverBuilder instance.
Actions(System.Action)
An array of the action buttons
Parameters
configurator - System.Action<PopoverActionFactory>
The configurator for the actions setting.
RETURNS
Returns the current instance of PopoverBuilder .
Body(System.String)
Defines a kendo template that will be used as the card body inside the popover component.
Parameters
value - System.String
The value for Body
RETURNS
Returns the current PopoverBuilder instance.
BodyHandler(System.String)
Defines a kendo template that will be used as the card body inside the popover component.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
RETURNS
Returns the current PopoverBuilder instance.
BodyHandler(System.Func)
Defines a kendo template that will be used as the card body inside the popover component.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current PopoverBuilder instance.
Filter(System.String)
Specifies a selector for the elements within the container which will display the Popover.
Parameters
value - System.String
The value for Filter
RETURNS
Returns the current PopoverBuilder instance.
Header(System.String)
Defines a kendo template that will be used as the card header inside the popover component.
Parameters
value - System.String
The value for Header
RETURNS
Returns the current PopoverBuilder instance.
HeaderHandler(System.String)
Defines a kendo template that will be used as the card header inside the popover component.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
RETURNS
Returns the current PopoverBuilder instance.
HeaderHandler(System.Func)
Defines a kendo template that will be used as the card header inside the popover component.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
RETURNS
Returns the current PopoverBuilder instance.
Height(System.Double)
The height (in pixels) of the Popover.
Parameters
value - System.Double
The value for Height
RETURNS
Returns the current PopoverBuilder instance.
ToggleOnClick(System.Boolean)
Defines a value indicating whether the popover will show/hide only when clicking on the target element.
Parameters
value - System.Boolean
The value for ToggleOnClick
RETURNS
Returns the current PopoverBuilder instance.
ToggleOnClick()
Defines a value indicating whether the popover will show/hide only when clicking on the target element.
RETURNS
Returns the current PopoverBuilder instance.
Width(System.Double)
The width (in pixels) of the Popover.
Parameters
value - System.Double
The value for Width
RETURNS
Returns the current PopoverBuilder instance.
Offset(System.Double)
Specifies the offset (in pixels) between the Popover and the anchor. The offset is rendered from the callout arrow.
Parameters
value - System.Double
The value for Offset
RETURNS
Returns the current PopoverBuilder instance.
ActionsLayout(Kendo.Mvc.UI.PopoverActionsLayout)
Defines how the actions buttons will be positioned
Parameters
value - PopoverActionsLayout
The value for ActionsLayout
RETURNS
Returns the current PopoverBuilder instance.
Position(Kendo.Mvc.UI.PopoverPosition)
The position that is relative to the target element at which the Popover will be shown.
Parameters
value - PopoverPosition
The value for Position
RETURNS
Returns the current PopoverBuilder instance.
ShowOn(Kendo.Mvc.UI.PopoverShowOn)
Defines when the Popover will be shown.
Parameters
value - PopoverShowOn
The value for ShowOn
RETURNS
Returns the current PopoverBuilder instance.
Events(System.Action)
Configures the client-side events.
Parameters
configurator - System.Action<PopoverEventBuilder>
The client events action.
RETURNS
Returns the current PopoverBuilder instance.
Example
@(Html.Kendo().Popover()
.Name("Popover")
.Events(events => events
.Show("onShow")
)
)
ToComponent()
Returns the internal view component.
RETURNS
The instance that represents the component.
Expression(System.String)
Sets the name of the component.
Parameters
modelExpression - System.String
RETURNS
Returns the current instance.
Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)
Sets the name of the component.
Parameters
modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
RETURNS
Returns the current instance.
Name(System.String)
Sets the name of the component.
Parameters
componentName - System.String
The name.
RETURNS
Returns the current instance.
Deferred(System.Boolean)
Suppress initialization script rendering. Note that this options should be used in conjunction with
Parameters
deferred - System.Boolean
RETURNS
Returns a DeferredWidgetBuilder instance.
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
RETURNS
Returns the current instance.
HtmlAttributes(System.Collections.Generic.IDictionary)
Sets the HTML attributes.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The HTML attributes.
RETURNS
Returns the current instance.
ScriptAttributes(System.Object,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Object
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
RETURNS
Returns the current instance.
ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
RETURNS
Returns the current instance.
Render()
Renders the component in place.
ToHtmlString()
Returns the HTML representation of the component.
WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)
Parameters
writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder
ToClientTemplate()
Returns the client template for the component.
AsModule(System.Boolean)
Specifies whether the initialization script of the component will be rendered as a JavaScript module.
Parameters
value - System.Boolean
RETURNS
Returns the current instance.