-
Notifications
You must be signed in to change notification settings - Fork 18
/
TODO
67 lines (54 loc) · 1.38 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
## Wish list / todos / brainwashing
recommendation:
State management: Litestate
Router: https://github.com/vaadin/vaadin-router
- [DONE 0.10.0] make reliftHTML to also accept array config -> reLiftHTML([{}, {}])
to allow multiple setup at once.
[0.11.0]
- Add el#.data on the component to expose data
<my-counter id=""></my-counter>
document.querySelector('#id').data ;
- Add $styleMap
- Passing props from parent to children
r:propName=varName
ie: <my-el r:item=this.item></my-el>
parsed to
<my-el item='json:${JSON.parse(this.item)}'></my-el>
- Add on() to create event hooks outside of the component
<my-counter id=""></my-counter>
const el = document.querySelector('#id');
el.on('stateChanged', () => {})
.on('update', () => {})
- add directive for-else
<ul>
<li r-for="items in this.items">{item}</li>
<li r-else>No content found</li>
</ul>
- enhance @bind="model.name" to use custom action
- Add use() that help setup hooks, or do something,
reLiftHTML({
use:[
key: {
setup
beforeCreate
created
afterCreate
beforeUpdate
updated
afterUpdate
beforeRemove
removed
afterRemoved
}
]
})
// thoughts gathering
reLiftHTML({
use:[
$store: {
setup: ({state}) {
}
}
]
})
- add animation, it toggles classes