# qch_draggable

> ## Properties

Latest version **0.0.0** (published 2023-11-19) · 0 weekly downloads

## Install

```sh
npm install qch_draggable
pnpm add qch_draggable
yarn add qch_draggable
bun add qch_draggable
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2023-11-19 |
| First published | 2023-11-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | chquek |

## Links

- npm: https://www.npmjs.com/package/qch_draggable
- npm.io page: https://npm.io/package/qch_draggable

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^3.3.8

## Recent versions

- 0.0.0 (latest) — 2023-11-19

## README

# Draggable DIV

## Properties

var | description 
--- | --- |
init | style of the draggable DIV
callback | function to invoke when mouse up/down

## Usage

Template

```
<div class="parent">
  <draggable :jobj="dobj" @dblclick="funcA">
    <template #content>Content</template>
    <template #context_menu>List</template>
  </draggable>
</div>
```

Script

```
data : function() {
  return {
    dobj : {
      container_style : { top : "200px" , left : "100px" , "background-color" : "lightgreen" } ,
      // callback : { mousedown : this.funcA , mouseup : this.funcA }
    }
  }
} ,
```


## Specify movement boundary 

Template
```
<div class="parent" ref="parent">
  <draggable ...></draggable>
</div>
</template>

script
```
mounted : function() {
  this.dobj.boundary = this.$refs.parent ;
} ,
```

---
_Source: https://npm.io/package/qch_draggable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
