reorderable.svelte.ts

Declarations
#

19 declarations

view source

DRAG_OVER_BOTTOM_CLASS_DEFAULT
#

DRAG_OVER_CLASS_DEFAULT
#

DRAG_OVER_LEFT_CLASS_DEFAULT
#

DRAG_OVER_RIGHT_CLASS_DEFAULT
#

DRAG_OVER_TOP_CLASS_DEFAULT
#

DRAGGING_CLASS_DEFAULT
#

INVALID_DROP_CLASS_DEFAULT
#

ITEM_CLASS_DEFAULT
#

LIST_CLASS_DEFAULT
#

Reorderable
#

reorderable.svelte.ts view source

inheritance

initialized

source_index

source_item_id

type ReorderableItemId | null

active_indicator_item_id

type ReorderableItemId | null

current_indicator

type ReorderableDropPosition

direction

type ReorderableDirection

id

type ReorderableId

readonly

list_class

type string | null

readonly

item_class

type string | null

readonly

dragging_class

type string | null

readonly

drag_over_class

type string | null

readonly

drag_over_top_class

type string | null

readonly

drag_over_bottom_class

type string | null

readonly

drag_over_left_class

type string | null

readonly

drag_over_right_class

type string | null

readonly

invalid_drop_class

type string | null

readonly

list_node

type HTMLElement | null

list_params

type ReorderableListParams | null

indices

type Map<ReorderableItemId, number>

readonly

elements

type Map<ReorderableItemId, HTMLElement>

readonly

pending_items

type Array<{ id: ReorderableItemId; index: number; element: HTMLElement; }>

constructor

type new (options?: ReorderableOptions): Reorderable

options
default EMPTY_OBJECT

init

Made public for testing purposes.

type (): void

returns void

clear_indicators

type (): void

returns void

update_indicator

type (item_id: ReorderableItemId, new_indicator: ReorderableDropPosition, is_valid?: boolean): void

item_id
new_indicator
is_valid
type boolean
default true
returns void

list

item

ReorderableDirection
#

ReorderableDropPosition
#

ReorderableId
#

ReorderableItemId
#

ReorderableItemParams
#

ReorderableListParams
#

ReorderableOptions
#

reorderable.svelte.ts view source

ReorderableOptions

Additional configuration options for Reorderable.

direction

Forces a specific direction for the reorderable list. Defaults to auto-detection, 'vertical' as the fallback.

list_class

type string | null

item_class

type string | null

dragging_class

type string | null

drag_over_class

type string | null

drag_over_top_class

type string | null

drag_over_bottom_class

type string | null

drag_over_left_class

type string | null

drag_over_right_class

type string | null

invalid_drop_class

type string | null

ReorderableStyleConfig
#

reorderable.svelte.ts view source

ReorderableStyleConfig

Styling configuration for reorderable components.

list_class

type string | null

item_class

type string | null

dragging_class

type string | null

drag_over_class

type string | null

drag_over_top_class

type string | null

drag_over_bottom_class

type string | null

drag_over_left_class

type string | null

drag_over_right_class

type string | null

invalid_drop_class

type string | null

ReorderableValidDropPosition
#

Depends on
#

Imported by
#