Type Alias DraggableOptions
DraggableOptions : {
button?: number;
enabled: boolean;
hasTargetClassList?: Iterable<string>;
ignoreTargetClassList?: Iterable<string>;
position: TJSPosition | Positionable;
storeDragging?: Writable<boolean>;
tween?: boolean;
tweenOptions?: QuickTweenOptions;
}
button?: number;
enabled: boolean;
hasTargetClassList?: Iterable<string>;
ignoreTargetClassList?: Iterable<string>;
position: TJSPosition | Positionable;
storeDragging?: Writable<boolean>;
tween?: boolean;
tweenOptions?: QuickTweenOptions;
}
Type declaration
Optional
button?: numberMouseEvent button that activates dragging; default: 0
enabled: boolean
A boolean value; controlling the
enabled
state.Optional
hasTarget ?: Iterable<string>Class List When defined any event targets that have a class in this list are allowed.
Optional
ignoreTarget ?: Iterable<string>Class List When defined any event targets that have a class in this list are ignored.
position: TJSPosition | Positionable
A position or positionable instance.
Optional
storeDragging ?: Writable<boolean>A writable store that tracks "dragging" state.
Optional
tween?: booleanWhen true tweening is enabled; default: false
Optional
tweenOptions ?: QuickTweenOptionsQuick tween options.
Defines the options for the draggable action.