Type Alias DraggableGsapOptions
type DraggableGsapOptions = {
button?: number;
enabled?: boolean;
hasTargetClassList?: Iterable<string>;
ignoreTargetClassList?: Iterable<string>;
inertia: boolean;
inertiaOptions: GsapInertiaOptions;
position: TJSPosition | Positionable;
storeDragging?: Writable<boolean>;
tween?: boolean;
tweenOptions?: GsapTweenOptions;
}
button?: number;
enabled?: boolean;
hasTargetClassList?: Iterable<string>;
ignoreTargetClassList?: Iterable<string>;
inertia: boolean;
inertiaOptions: GsapInertiaOptions;
position: TJSPosition | Positionable;
storeDragging?: Writable<boolean>;
tween?: boolean;
tweenOptions?: GsapTweenOptions;
}
Properties
Optionalbutton
button?: number
MouseEvent button that activates dragging; default: 0
Optionalenabled
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.
inertia
inertia: boolean
When true inertia plugin options are enabled.
inertiaOptions
Inertia plugin options.
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 draggableGsap action.