Skip to main content

SortableBuilder Members

A Sortable control.

Constructors

Name Description
SortableBuilder(OptionsOwnerContext) For internal use only. Initializes a new SortableBuilder class instance.

Methods

Name Description
AllowDropInsideItem(JS) Allows a user to drop an item inside another item. Mirrors the client-side allowDropInsideItem option.
AllowDropInsideItem(Boolean) Allows a user to drop an item inside another item. Mirrors the client-side allowDropInsideItem option.
AllowReordering(JS) Allows a user to reorder sortable items. Mirrors the client-side allowReordering option.
AllowReordering(Boolean) Allows a user to reorder sortable items. Mirrors the client-side allowReordering option.
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.
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 Sortable control.
Content(String) Specifies content for a Sortable control.
CursorOffset(JS) Specifies the cursor offset from the dragged item. Mirrors the client-side cursorOffset option.
CursorOffset(Action<SortableCursorOffsetBuilder>) 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.
DropFeedbackMode(DropFeedbackMode) Specifies how to highlight the item's drop position. Mirrors the client-side dropFeedbackMode option.
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.
Filter(JS) Specifies a CSS selector for the items that can be dragged. Mirrors the client-side filter option.
Filter(String) Specifies a CSS selector for the items that can be dragged. Mirrors the client-side filter option.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
Group(JS) Mirrors the client-side group option.
Group(String) 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.
ItemOrientation(Orientation) Notifies the UI component of the items' orientation. Mirrors the client-side itemOrientation option.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MoveItemOnDrop(JS) Moves an element in the HTML markup when it is dropped. Mirrors the client-side moveItemOnDrop option.
MoveItemOnDrop(Boolean) Moves an element in the HTML markup when it is dropped. Mirrors the client-side moveItemOnDrop option.
OnAdd(RazorBlock) A function that is called when a new item is added. Mirrors the client-side onAdd option.
OnAdd(String) A function that is called when a new item is added. Mirrors the client-side onAdd option.
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.
OnDragChange(RazorBlock) A function that is called when the dragged item's position in the list is changed. Mirrors the client-side onDragChange option.
OnDragChange(String) A function that is called when the dragged item's position in the list is changed. Mirrors the client-side onDragChange option.
OnDragEnd(RazorBlock) A function that is called when the drag gesture is finished. Mirrors the client-side onDragEnd option.
OnDragEnd(String) A function that is called when the 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.
OnRemove(RazorBlock) A function that is called when a draggable item is removed. Mirrors the client-side onRemove option.
OnRemove(String) A function that is called when a draggable item is removed. Mirrors the client-side onRemove option.
OnReorder(RazorBlock) A function that is called when the draggable items are reordered. Mirrors the client-side onReorder option.
OnReorder(String) A function that is called when the draggable items are reordered. Mirrors the client-side onReorder 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