Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CONTRIBUTING.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing to allonsh.js
# Contributing to Allonsh.js

First off, thank you for considering contributing to allonsh.js! We welcome improvements, bug fixes, documentation updates, and ideas.
First off, thank you for considering contributing to Allonsh.js! We welcome improvements, bug fixes, documentation updates, and ideas.

## How to Contribute

Expand Down Expand Up @@ -83,4 +83,4 @@ Be respectful and courteous. We aim for an inclusive and welcoming community.

---

Thank you for contributing to allonsh.js!
Thank you for contributing to Allonsh.js!
4 changes: 3 additions & 1 deletion docs/allonsh.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ Creates a new Allonsh instance.
- `draggableSelector` (string, **required**) — CSS class name for draggable elements.
- `dropzoneSelector` (string, optional) — CSS class name for dropzone elements.
- `playAreaSelector` (string, optional) — CSS class name for the play area container. Defaults to `document.body`.
- `restrictToDropzones` (boolean, optional) — If `true`, dragging outside dropzones will return element to origin. Default: `false`.
- `restrictToDropzones` (boolean, optional) — If `true`, dragging outside dropzones will return the element to its origin. Default: `false`.
- `enableStacking` (boolean, optional) — Enables stacking layout in dropzones. Default: `false`.
- `stackDirection` (string, optional) — `'horizontal'` or `'vertical'` stacking direction. Default: `'horizontal'`.
- `stackSpacing` (number, optional) — Space in pixels between stacked elements. Default: `5`.
- `useGhostEffect` (boolean, optional) — Uses a semi-transparent clone as a "ghost" while dragging. Default: `false`.

**Note:** The draggableSelector, dropzoneSelector, and playAreaSelector parameters expect class names without the leading '.' For example, if the class name is .draggable, pass draggable (without the dot).

---

## Methods
Expand Down