tagu-tagu 3.2.4 → 3.2.5
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.
- package/README.md +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,6 +54,7 @@ button({css: {background: "blue"}}, "Hello!");
|
|
|
54
54
|
|
|
55
55
|
#### Modify existing element
|
|
56
56
|
You can use initializers for existing element.
|
|
57
|
+
[JSFiddle](https://jsfiddle.net/do_the_simplest/o87nw6zL/15/)
|
|
57
58
|
|
|
58
59
|
```typescript
|
|
59
60
|
import { Modify } from "tagu-tagu";
|
|
@@ -250,6 +251,7 @@ document.body.appendChild(InitializerCallbackExample());
|
|
|
250
251
|
```
|
|
251
252
|
|
|
252
253
|
### `If`
|
|
254
|
+
[JSFiddle](https://jsfiddle.net/do_the_simplest/bxuqsh1d/19/)
|
|
253
255
|
|
|
254
256
|
```typescript
|
|
255
257
|
import { div, If, input, span, useState } from "tagu-tagu";
|
|
@@ -280,6 +282,7 @@ document.body.appendChild(IfExample());
|
|
|
280
282
|
```
|
|
281
283
|
|
|
282
284
|
### `Switch`
|
|
285
|
+
[JSFiddle](https://jsfiddle.net/do_the_simplest/vw8hrz1t/14/)
|
|
283
286
|
|
|
284
287
|
```typescript
|
|
285
288
|
import { button, div, Switch, useState } from "tagu-tagu";
|
|
@@ -309,6 +312,7 @@ document.body.appendChild(SwitchExample());
|
|
|
309
312
|
```
|
|
310
313
|
|
|
311
314
|
### `For`
|
|
315
|
+
[JSFiddle](https://jsfiddle.net/do_the_simplest/soLa9v6t/12/)
|
|
312
316
|
|
|
313
317
|
```typescript
|
|
314
318
|
import { button, div, For, useState } from "tagu-tagu";
|
|
@@ -343,6 +347,7 @@ document.body.appendChild(ForExample());
|
|
|
343
347
|
|
|
344
348
|
### Data binding
|
|
345
349
|
You can use data of ancestors.
|
|
350
|
+
[JSFiddle](https://jsfiddle.net/do_the_simplest/9u6oz2bc/6/)
|
|
346
351
|
|
|
347
352
|
```typescript
|
|
348
353
|
import { button, div, useBinding, useState } from "tagu-tagu";
|