-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.js
66 lines (38 loc) · 1.42 KB
/
notes.js
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
/*
drag and drop API
### --- Event handlers --- ###
- ondragstart: attached to draggable element and fire when "dargstart" event occurs
- ondragover: attached to container element (where you drop stuff off), and fire hwen "dragover" event occurs
- ondrop: attached to container element, fire when "drop" event occurs
- total 8 event handlers in total:
- ondrag
- ondragend
- ondragenter
- ondragexit
- ondragleav
- ondragover
- ondragstart
- ondrop
### --- ###
### --- DataTransfer Object (property of drag events!!!) --- ###
DataTransfer: object used to hold data that is being dragged during a drag and drop operation. can hold multiple dta
-- Method: setData
- dataTransfer.setData(format, data);
- format: a DOMString, type of the drag data to add to drag object
- data: DOMString represent the data to add to the drag object
### --- ###
toDo:
1. Validation on all 6 input fields (x)
2. Expense Category dropdown list
3. side bar & hamburger menu on nav bar (change to overlay)
4. sorting functionality for all content-5 detail (x)
5. drag/drop page (change to overlay)
6. content-3 dynamic data update (x)
7. responsiveness of index.html
8. sorting with date range on content-4
9. insight page with tree structure
10. Enter New Expense section had Merchant dropdown list added
11. Dynamic update for Merchant dropdown list
//Maybe add a "Category Management" page for metadata management,
//where we can use drag & drop
*/