Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
PopupBuilder
Assembly: Syncfusion.EJ2.dll
public class PopupBuilder : ControlBuilder
Constructors
Declaration
Declaration
public PopupBuilder(Popup model)
Parameters
| Type |
Name |
Description |
| Popup |
model |
|
Properties
Declaration
public string ID { get; set; }
Property Value
Declaration
public override TextWriter Output { get; set; }
Property Value
| Type |
| System.IO.TextWriter |
Overrides
Syncfusion.EJ2.ControlBuilder.Output
Methods
specifies the action that should happen when scroll the target-parent container.
This property should define either reposition or hide.
when set reposition to this property, the popup position will refresh when scroll any parent container.
when set hide to this property, the popup will be closed when scroll any parent container.
Declaration
public PopupBuilder ActionOnScroll(ActionOnScrollType actionOnScroll)
Parameters
Returns
Trigger the event once closed the popup.
Declaration
public PopupBuilder Close(string close)
Parameters
| Type |
Name |
Description |
| System.String |
close |
|
Returns
Specifies the collision handler settings of the component.
Declaration
public PopupBuilder Collision(object collision)
Parameters
| Type |
Name |
Description |
| System.Object |
collision |
|
Returns
Specifies the content of the popup element, it can be string or HTMLElement.
Declaration
public PopupBuilder Content(string content)
Parameters
| Type |
Name |
Description |
| System.String |
content |
|
Returns
Declaration
public PopupBuilder ContentTemplate(Func<object, object> template)
Parameters
| Type |
Name |
Description |
| System.Func<System.Object, System.Object> |
template |
|
Returns
Enable or disable persisting component's state between page reloads.
Declaration
public PopupBuilder EnablePersistence(bool enablePersistence = true)
Parameters
| Type |
Name |
Description |
| System.Boolean |
enablePersistence |
|
Returns
specifies the rtl direction state of the popup element.
Declaration
public PopupBuilder EnableRtl(bool enableRtl = true)
Parameters
| Type |
Name |
Description |
| System.Boolean |
enableRtl |
|
Returns
Specifies the height of the popup element.
Declaration
public PopupBuilder Height(string height)
Parameters
| Type |
Name |
Description |
| System.String |
height |
|
Returns
specifies the animation that should happen when popup closes.
Declaration
public PopupBuilder HideAnimation(object hideAnimation)
Parameters
| Type |
Name |
Description |
| System.Object |
hideAnimation |
|
Returns
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public PopupBuilder Locale(string locale)
Parameters
| Type |
Name |
Description |
| System.String |
locale |
|
Returns
specifies the popup element offset-x value, respective to the relative element.
Declaration
public PopupBuilder OffsetX(double offsetX)
Parameters
| Type |
Name |
Description |
| System.Double |
offsetX |
|
Returns
specifies the popup element offset-y value, respective to the relative element.
Declaration
public PopupBuilder OffsetY(double offsetY)
Parameters
| Type |
Name |
Description |
| System.Double |
offsetY |
|
Returns
Triggers the event once opened the popup.
Declaration
public PopupBuilder Open(string open)
Parameters
| Type |
Name |
Description |
| System.String |
open |
|
Returns
Specifies the popup element position, respective to the relative element.
Declaration
public PopupBuilder Position(object position)
Parameters
| Type |
Name |
Description |
| System.Object |
position |
|
Returns
Specifies the relative container element of the popup element.Based on the relative element, popup element will be positioned.
Declaration
public PopupBuilder RelateTo(string relateTo)
Parameters
| Type |
Name |
Description |
| System.String |
relateTo |
|
Returns
Declaration
public HtmlString Render()
Returns
| Type |
| Microsoft.AspNetCore.Html.HtmlString |
specifies the animation that should happen when popup open.
Declaration
public PopupBuilder ShowAnimation(object showAnimation)
Parameters
| Type |
Name |
Description |
| System.Object |
showAnimation |
|
Returns
Triggers the event when target element hide from view port on scroll.
Declaration
public PopupBuilder TargetExitViewport(string targetExitViewport)
Parameters
| Type |
Name |
Description |
| System.String |
targetExitViewport |
|
Returns
Specifies the relative element type of the component.
Declaration
public PopupBuilder TargetType(TargetType targetType)
Parameters
Returns
Specifies the collision detectable container element of the component.
Declaration
public PopupBuilder ViewPortElement(object viewPortElement)
Parameters
| Type |
Name |
Description |
| System.Object |
viewPortElement |
|
Returns
Specifies the height of the popup element.
Declaration
public PopupBuilder Width(string width)
Parameters
| Type |
Name |
Description |
| System.String |
width |
|
Returns
specifies the z-index value of the popup element.
Declaration
public PopupBuilder ZIndex(double zIndex)
Parameters
| Type |
Name |
Description |
| System.Double |
zIndex |
|
Returns