Type Alias DraggableOptions
type 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;
}
Properties
Optionalbutton
button?: number
MouseEvent button that activates dragging; default: 0
enabled
enabled: boolean
A boolean value; controlling the enabled state.
OptionalhasTargetClassList
When defined any event targets that have a class in this list are allowed.
OptionalignoreTargetClassList
When defined any event targets that have a class in this list are ignored.
position
A position or positionable instance.
OptionalstoreDragging
A writable store that tracks "dragging" state.
Optionaltween
tween?: boolean
When true tweening is enabled; default: false
OptionaltweenOptions
Quick tween options.
Defines the options for the draggable action.