Interface JSTreeStaticDefaultsDragNDrop

Index

Properties

Properties

public always_copy: boolean

a boolean indicating if nodes from this tree should only be copied with dnd (as opposed to moved), default is false

name

$.jstree.defaults.dnd.always_copy

plugin

dnd

public check_while_dragging: boolean

a boolean indicating if checks should constantly be made while the user is dragging the node (as opposed to checking only on drop), default is true

name

$.jstree.defaults.dnd.check_while_dragging

plugin

dnd

public copy: boolean

a boolean indicating if a copy should be possible while dragging (by pressint the meta key or Ctrl). Defaults to true.

name

$.jstree.defaults.dnd.copy

plugin

dnd

public inside_pos: any

when dropping a node "inside", this setting indicates the position the node should go to - it can be an integer or a string: "first" (same as 0) or "last", default is 0

name

$.jstree.defaults.dnd.inside_pos

plugin

dnd

public is_draggable: boolean

a function invoked each time a node is about to be dragged, invoked in the tree's scope and receives the nodes about to be dragged as an argument (array) - return false to prevent dragging

name

$.jstree.defaults.dnd.is_draggable

plugin

dnd

public open_timeout: number

a number indicating how long a node should remain hovered while dragging to be opened. Defaults to 500.

name

$.jstree.defaults.dnd.open_timeout

plugin

dnd