DraggableBuilder Methods
A Draggable control.Name | Description |
---|---|
AutoScroll(JS) | Enables automatic scrolling while dragging an item beyond the viewport. Mirrors the client-side autoScroll option. |
AutoScroll(Boolean) | Enables automatic scrolling while dragging an item beyond the viewport. Mirrors the client-side autoScroll option. |
Boundary(JS) | Specifies a DOM element that limits the dragging area. Mirrors the client-side boundary option. |
Boundary(String) | Specifies a DOM element that limits the dragging area. Mirrors the client-side boundary option. |
Clone(JS) | Allows a user to drag clones of items instead of actual items. Mirrors the client-side clone option. |
Clone(Boolean) | Allows a user to drag clones of items instead of actual items. Mirrors the client-side clone option. |
Container(JS) | Specifies a custom container in which the draggable item should be rendered. Mirrors the client-side container option. |
Container(String) | Specifies a custom container in which the draggable item should be rendered. Mirrors the client-side container option. |
Content(RazorBlock) | Specifies content for a Draggable control. |
Content(String) | Specifies content for a Draggable control. |
CursorOffset(JS) | Specifies the cursor offset from the dragged item. Mirrors the client-side cursorOffset option. |
CursorOffset(Action<DraggableCursorOffsetBuilder>) | Specifies the cursor offset from the dragged item. Mirrors the client-side cursorOffset object. |
CursorOffset(String) | Specifies the cursor offset from the dragged item. Mirrors the client-side cursorOffset option. |
Data(Object) | A container for custom data. Mirrors the client-side data option. |
DragDirection(DragDirection) | Specifies the directions in which an item can be dragged. Mirrors the client-side dragDirection option. |
DragTemplate(JS) | Specifies the client-side dragTemplate. |
DragTemplate(RazorBlock) | Specifies the client-side dragTemplate. |
DragTemplate(TemplateName) | Specifies the client-side dragTemplate. |
DragTemplate(String) | Specifies the client-side dragTemplate. |
ElementAttr(JS) | Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element. |
ElementAttr(Dictionary<String, Object>) | Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element. |
ElementAttr(Object) | Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element. |
ElementAttr(String, Object) | Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element. |
Equals(Object, Object) static | Determines whether the specified object instances are considered equal. Inherited from Object. |
Equals(Object) | Determines whether the specified object is equal to the current object. Inherited from Object. |
GetHashCode() | Serves as the default hash function. Inherited from Object. |
GetType() | Gets the Type of the current instance. Inherited from Object. |
Group(JS) | Allows you to group several UI components, so that users can drag and drop items between them. Mirrors the client-side group option. |
Group(String) | Allows you to group several UI components, so that users can drag and drop items between them. Mirrors the client-side group option. |
Handle(JS) | Specifies a CSS selector (ID or class) that should act as the drag handle(s) for the item(s). Mirrors the client-side handle option. |
Handle(String) | Specifies a CSS selector (ID or class) that should act as the drag handle(s) for the item(s). Mirrors the client-side handle option. |
Height(JS) | Specifies the UI component's height. Mirrors the client-side height option. |
Height(Double) | Specifies the UI component's height. Mirrors the client-side height option. |
Height(String) | Specifies the UI component's height. Mirrors the client-side height option. |
ID(JS) |
Specifies the id attribute for the control’s HTML element (used for nested controls within templates).
|
ID(String) |
Specifies the id attribute for the control’s HTML element.
|
MemberwiseClone() protected | Creates a shallow copy of the current Object. Inherited from Object. |
OnDisposing(RazorBlock) | A function that is executed before the UI component is disposed of. Mirrors the client-side onDisposing option. |
OnDisposing(String) | A function that is executed before the UI component is disposed of. Mirrors the client-side onDisposing option. |
OnDragEnd(RazorBlock) | A function that is called when a drag gesture is finished. Mirrors the client-side onDragEnd option. |
OnDragEnd(String) | A function that is called when a drag gesture is finished. Mirrors the client-side onDragEnd option. |
OnDragMove(RazorBlock) | A function that is called every time a draggable item is moved. Mirrors the client-side onDragMove option. |
OnDragMove(String) | A function that is called every time a draggable item is moved. Mirrors the client-side onDragMove option. |
OnDragStart(RazorBlock) | A function that is called when a drag gesture is initialized. Mirrors the client-side onDragStart option. |
OnDragStart(String) | A function that is called when a drag gesture is initialized. Mirrors the client-side onDragStart option. |
OnInitialized(RazorBlock) | A function used in JavaScript frameworks to save the UI component instance. Mirrors the client-side onInitialized option. |
OnInitialized(String) | A function used in JavaScript frameworks to save the UI component instance. Mirrors the client-side onInitialized option. |
OnOptionChanged(RazorBlock) | A function that is executed after a UI component property is changed. Mirrors the client-side onOptionChanged option. |
OnOptionChanged(String) | A function that is executed after a UI component property is changed. Mirrors the client-side onOptionChanged option. |
Option(String, Object) | Specifies an option by its name. |
ReferenceEquals(Object, Object) static | Determines whether the specified Object instances are the same instance. Inherited from Object. |
Render() | Inherited from WidgetBuilder. |
RtlEnabled(JS) | Switches the UI component to a right-to-left representation. Mirrors the client-side rtlEnabled option. |
RtlEnabled(Boolean) | Switches the UI component to a right-to-left representation. Mirrors the client-side rtlEnabled option. |
ScrollSensitivity(JS) | Specifies the distance in pixels from the edge of viewport at which scrolling should start. Applies only if autoScroll is true. Mirrors the client-side scrollSensitivity option. |
ScrollSensitivity(Double) | Specifies the distance in pixels from the edge of viewport at which scrolling should start. Applies only if autoScroll is true. Mirrors the client-side scrollSensitivity option. |
ScrollSpeed(JS) | Specifies the scrolling speed when dragging an item beyond the viewport. Applies only if autoScroll is true. Mirrors the client-side scrollSpeed option. |
ScrollSpeed(Double) | Specifies the scrolling speed when dragging an item beyond the viewport. Applies only if autoScroll is true. Mirrors the client-side scrollSpeed option. |
ToString() | Inherited from WidgetBuilder. |
ToTemplate() | Renders the control as a template string for use in another control’s template. Inherited from WidgetBuilder. |
Width(JS) | Specifies the UI component's width. Mirrors the client-side width option. |
Width(Double) | Specifies the UI component's width. Mirrors the client-side width option. |
Width(String) | Specifies the UI component's width. Mirrors the client-side width option. |
See Also