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;
}

Defines the options for the draggableGsap action.

Type declaration

  • Optionalbutton?: number

    MouseEvent button that activates dragging; default: 0

  • Optionalenabled?: boolean

    A boolean value; controlling the enabled state.

  • OptionalhasTargetClassList?: Iterable<string>

    When defined any event targets that have a class in this list are allowed.

  • OptionalignoreTargetClassList?: Iterable<string>

    When defined any event targets that have a class in this list are ignored.

  • inertia: boolean

    When true inertia plugin options are enabled.

  • inertiaOptions: GsapInertiaOptions

    Inertia plugin options.

  • position: TJSPosition | Positionable

    A position or positionable instance.

  • OptionalstoreDragging?: Writable<boolean>

    A writable store that tracks "dragging" state.

  • Optionaltween?: boolean

    When true tweening is enabled; default: false

  • OptionaltweenOptions?: GsapTweenOptions

    Quick tween options.