Skip to content

Commit ab79035

Browse files
authored
Create OrderedListController.js
1 parent aec5bdd commit ab79035

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
({
2+
doInit : function(component, event, helper) {
3+
helper.doInit(component);
4+
},
5+
deleteFromList : function(component,event, helper){
6+
helper.deleteFromList(component,event);
7+
},
8+
moveItems : function(component,event, helper){
9+
helper.moveItems(component);
10+
},
11+
handleDataChangeAppEvent : function(component, event, helper) {
12+
helper.handleDataChangeAppEvent (component, event);
13+
},
14+
handleListClick : function(component, event, helper) {
15+
helper.handleListClick(component,event,"v.items","v.highlightedItems","v.highlightedItem");
16+
},
17+
handleAddItems : function(component,event, helper){
18+
helper.handleAddItems(component,event,"v.items","v.highlightedItems","v.highlightedItem");
19+
},
20+
handleReorderItemUp : function(component,event, helper){
21+
helper.reorderItem(component,'up');
22+
},
23+
handleReorderItemDown : function(component,event, helper){
24+
helper.reorderItem(component,'down');
25+
},
26+
handleDragStart: function(component, event, helper) {
27+
helper.handleDragStart(component,event,"v.items");
28+
},
29+
handleOnDragEnter: function(component, event, helper) {
30+
helper.handleOnDragEnter(component,event);
31+
},
32+
handleOnDragLeave: function(component, event, helper) {
33+
helper.handleOnDragLeave(component,event);
34+
},
35+
handleOnDrop: function(component, event, helper) {
36+
helper.handleOnDrop(component,event);
37+
},
38+
handleOnDropParent: function(component, event, helper) {
39+
helper.handleOnDropParent(component,event);
40+
},
41+
42+
/*dummy methods*/
43+
handleOnDragOver: function(component, event, helper) {
44+
event.preventDefault();
45+
},
46+
handleOnDragOverDummy: function(component, event, helper) {
47+
event.preventDefault();
48+
},
49+
handleOnDragEnterDummy: function(component, event, helper) {
50+
event.preventDefault();
51+
},
52+
handleOnDragLeaveDummy: function(component, event, helper) {
53+
event.preventDefault();
54+
},
55+
56+
57+
})

0 commit comments

Comments
 (0)