-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsortable.jade
More file actions
60 lines (48 loc) · 1.52 KB
/
sortable.jade
File metadata and controls
60 lines (48 loc) · 1.52 KB
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
div(ng-controller="SortableCtrl")
h1 Shift Sortable Drag n Drop
p
| Sortable directive to allow drag n' drop sorting of an array.
h2 Scope
pre
code.code
| $scope.items = {{items}}
| $scope.items_visited = {{items_visited}}
| $scope.items_to_visit = {{items_to_visit}}
h2 Drag n Drop
.panel.sortable-container(
shift-sortable = "items"
shift-sortable-change = "onItemOrderChange(items)"
)
.sortable-element(ng-repeat = "item in items") {{ item }}
h2 Drag n Drop with handle
.panel.inline-sortable.sortable-container(
shift-sortable = "items"
shift-sortable-handle = "i.fa-align-justify"
)
span.sortable-element(ng-repeat = "item in items")
i.fa.fa-align-justify
| {{ item }}
h2 Drag n Drop accross different list
.panel.column
h3 Cities
.sortable-container(
shift-sortable = "items"
shift-sortable-namespace = "item_bucket"
shift-sortable-add = "onItemAdded(item)"
shift-sortable-remove = "onItemRemoved(item)"
)
.sortable-element(ng-repeat = "item in items") {{ item }}
.panel.column
h3 Visited
.sortable-container(
shift-sortable = "items_visited"
shift-sortable-namespace = "item_bucket"
)
.sortable-element(ng-repeat = "item in items_visited") {{ item }}
.panel.column
h3 Planned
.sortable-container(
shift-sortable = "items_to_visit"
shift-sortable-namespace = "item_bucket"
)
.sortable-element(ng-repeat = "item in items_to_visit") {{ item }}