You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- That's it — all elements are ready to use -->
46
19
```
47
20
21
+
NoJS Elements auto-installs itself when loaded via `<script>` tag — no `NoJS.use()` call needed.
22
+
48
23
---
49
24
50
25
## Elements
@@ -132,7 +107,7 @@ This plugin requires **No.JS >= 1.13.0** as a peer dependency.
132
107
133
108
Detailed documentation for each element is available in [`docs/md/`](docs/md/).
134
109
135
-
For the full directive reference with all attributes, events, CSS classes, and accessibility details, see the [NoJS-Skill directive reference](https://github.com/no-js-dev/nojs-skill/blob/main/references/directives.md#drag-and-drop).
110
+
For the full directive reference with all attributes, events, CSS classes, and accessibility details, see the [NoJS-Skill element references](https://github.com/no-js-dev/nojs-skill/blob/main/nojs/references/elements/).
136
111
137
112
---
138
113
@@ -151,6 +126,13 @@ For the full directive reference with all attributes, events, CSS classes, and a
151
126
152
127
Contributions are welcome! Please open an issue or submit a pull request.
153
128
129
+
```bash
130
+
npm install # install dependencies
131
+
npm run build # esbuild → dist/{iife,esm,cjs}/nojs-elements.js
132
+
npm test# Jest unit tests
133
+
cd e2e && npx playwright test# E2E tests (Playwright)
<!-- That's it — all elements are ready to use -->
78
53
```
79
54
55
+
NoJS Elements auto-installs itself when loaded via `<script>` tag — no `NoJS.use()` call needed.
56
+
80
57
## Peer Dependency
81
58
82
59
This plugin requires **No.JS >= 1.13.0** as a peer dependency.
@@ -107,7 +84,7 @@ This plugin requires **No.JS >= 1.13.0** as a peer dependency.
107
84
108
85
# Drag and Drop
109
86
110
-
> The DnD module is included in NoJS Elements. When using the CDN, it is auto-installed — no separate registration is needed. For ESM usage, call `NoJS.use(NoJSElements)` once.
87
+
> The DnD module is included in NoJS Elements. When using the CDN, it is auto-installed — no separate registration is needed.
111
88
112
89
## `drag` — Make an Element Draggable
113
90
@@ -365,7 +342,7 @@ No.JS automatically adds:
365
342
366
343
# Validation
367
344
368
-
> The Validation module is included in NoJS Elements. When using the CDN, it is auto-installed — no separate registration is needed. For ESM usage, call `NoJS.use(NoJSElements)` once.
345
+
> The Validation module is included in NoJS Elements. When using the CDN, it is auto-installed — no separate registration is needed.
0 commit comments