DrSensor / DrSensor/nusa

Parent and Cascade binding

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
data binding enhancement priority: high
Dominant language
JavaScript
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

- [ ] #36
- [ ] `data-cascade` attribute
- [ ] `data-parent` attribute
- [ ] use the attribute value as the depth of binding

```html

increment



```
same as
```html

increment



```
To turn off prefix `&`
```html

increment



```
It also possible to alias the parent data
- `data-cascade` aliasing still require prefix `&`
- `data-parent` aliasing doesn't require prefix `&`
```html

increment



```
- aliasing support glob or RegEx pattern, but to avoid repetitive RegEx compilation:
- RegEx pattern is detected if value startWith('^') or endWith('$')
- otherwise use simple glob pattern
```html

```

---
> **Note** on Granular Data Cascade
> only `data-cascade` allowed on ``
> ```html
>
> ```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.