tagu-tagu 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +14 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -272,6 +272,20 @@ function InitializerCallbackExample() {
272
272
  document.body.appendChild(InitializerCallbackExample());
273
273
  ```
274
274
 
275
+ #### Data initializer
276
+ [JSFiddle](https://jsfiddle.net/do_the_simplest/9cLtyzkm/1/)
277
+
278
+ ```typescript
279
+ import { div, waitForData } from "tagu-tagu";
280
+
281
+ function DataExample() {
282
+ return div({ data: { "my-data-key": "Hello World!" } });
283
+ }
284
+
285
+ const element = DataExample();
286
+ console.log(await waitForData(element, "my-data-key")); // Hello World!
287
+ ```
288
+
275
289
  ### `If`
276
290
  [JSFiddle](https://jsfiddle.net/do_the_simplest/bxuqsh1d/19/)
277
291
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tagu-tagu",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "A lightweight helper for vanilla `HTMLElement`, with reactivity.",
5
5
  "keywords": [
6
6
  "front-end",