vuedraggable

  • Version 2.24.3
  • Published
  • 512 kB
  • 1 dependency
  • MIT license

Install

npm i vuedraggable
yarn add vuedraggable
pnpm add vuedraggable

Overview

draggable component for vue

Index

Namespaces

namespace vuedraggable

module 'vuedraggable' {}

    variable draggable

    const draggable: VueConstructor<any>;

      type DraggedContext

      type DraggedContext<T> = {
      index: number;
      futureIndex: number;
      element: T;
      };

        type DropContext

        type DropContext<T> = {
        index: number;
        component: Vue;
        element: T;
        };

          type MoveEvent

          type MoveEvent<T> = {
          originalEvent: DragEvent;
          dragged: Element;
          draggedContext: DraggedContext<T>;
          draggedRect: Rectangle;
          related: Element;
          relatedContext: DropContext<T>;
          relatedRect: Rectangle;
          from: Element;
          to: Element;
          willInsertAfter: boolean;
          isTrusted: boolean;
          };

            type Rectangle

            type Rectangle = {
            top: number;
            right: number;
            bottom: number;
            left: number;
            width: number;
            height: number;
            };

              Package Files (1)

              Dependencies (1)

              Dev Dependencies (24)

              Peer Dependencies (0)

              No peer dependencies.

              Badge

              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/vuedraggable.

              • Markdown
                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/vuedraggable)
              • HTML
                <a href="https://www.jsdocs.io/package/vuedraggable"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>