File tree Expand file tree Collapse file tree 5 files changed +15
-26
lines changed Expand file tree Collapse file tree 5 files changed +15
-26
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ iron:router@1.0.9
52
52
iron:url@1.0.9
53
53
jandres:ionic@0.1.24
54
54
jandres:mutation-summary@0.0.1
55
- jandres:template-children@0.0.3
55
+ jandres:template-children@0.0.4
56
56
jquery@1.11.4
57
57
launch-screen@1.0.4
58
58
livedata@1.0.15
Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ <h1 class="title">Meteor Ionic</h1>
103
103
{{/ionItemContent}}
104
104
{{/ionItem}}
105
105
106
- {{#ionItem path="slideBox"}}
107
- {{#ionItemContent class="item-icon-left item-icon-right" }}
106
+ {{#ionItem path="slideBox" class="item-icon-left item-icon-right" }}
107
+ {{#ionItemContent}}
108
108
{{> ionIcon icon="ios-checkmark" class="positive"}}
109
109
Slide Box
110
110
{{> ionIcon icon="ios-arrow-right"}}
Original file line number Diff line number Diff line change 5
5
{{#contentFor "headerTitle"}}
6
6
< h1 class ="title "> Lists</ h1 >
7
7
{{/contentFor}}
8
+ {{#contentFor "headerButtonRight"}}
9
+ < button class ="button button-clear " id ="button-reorder "> Reorder</ button >
10
+ {{/contentFor}}
8
11
9
12
{{#ionView}}
10
13
{{#ionContent}}
11
- < li class ="item item-toggle ">
12
- Sortable
13
- < label class ="toggle ">
14
- < input type ="checkbox " id ="sortable-checkbox ">
15
- < div class ="track ">
16
- < div class ="handle "> </ div >
17
- </ div >
18
- </ label >
19
- </ li >
20
- {{#ionList ionSortable=sortable onReorder=onReorder showDelete=deletable}}
14
+ {{#ionList onReorder=onReorder showDelete=deletable showReorder=sortable canSwipe=true}}
21
15
{{#each times}}
22
16
{{#ionItem class="item-button-right item-avatar-right" index=this}}
23
17
{{#ionItemContent}}
@@ -36,6 +30,7 @@ <h2>John Smith {{..}}</h2>
36
30
{{/ionItemOptions}}
37
31
38
32
{{#ionDeleteButton class="ion-minus-circled"}}{{/ionDeleteButton}}
33
+ {{#ionReorderButton class="ion-navicon"}}{{/ionReorderButton}}
39
34
{{/ionItem}}
40
35
{{/each}}
41
36
{{/ionList}}
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Template.listsSortable.onCreated(function(){
7
7
8
8
Template . listsSortable . onRendered ( function ( ) {
9
9
$ ( "#button-delete" ) . click ( ( ) => this . deletable . set ( ! this . deletable . get ( ) ) ) ;
10
+ $ ( "#button-reorder" ) . click ( ( ) => this . sortable . set ( ! this . sortable . get ( ) ) ) ;
10
11
} ) ;
11
12
12
13
Template . listsSortable . helpers ( {
@@ -31,11 +32,4 @@ Template.listsSortable.helpers({
31
32
deletable : function ( ) {
32
33
return Template . instance ( ) . deletable . get ( ) ;
33
34
}
34
- } ) ;
35
-
36
- Template . listsSortable . events ( {
37
- "change #sortable-checkbox" : function ( e , template ) {
38
- let sortable = e . target . checked ;
39
- template . sortable . set ( sortable ) ;
40
- }
41
35
} ) ;
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ <h1 class="title">Lists</h1>
15
15
16
16
{{#each times}}
17
17
{{#ionItem buttonRight=true avatar=true index=this}}
18
- < img src =" https://randomuser.me/api/portraits/thumb/men/27.jpg " >
19
- < h2 > John Smith {{{this}}} </ h2 >
20
- < p >
21
- (555) 555-1212
22
- </ p >
23
- < button class =" button button-positive " > {{ > ionIcon icon="ios-telephone"}} </ button >
18
+ {{#ionItemContent}}
19
+ < img src =" https://randomuser.me/api/portraits/thumb/men/27.jpg " >
20
+ < h2 > John Smith {{{..}}} </ h2 >
21
+ < p > (555) 555-1212</ p >
22
+ < button class =" button button-positive " > {{ > ionIcon icon="ios-telephone"}} </ button >
23
+ {{/ionItemContent}}
24
24
{{/ionItem}}
25
25
{{/each}}
26
26
You can’t perform that action at this time.
0 commit comments