mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-06-30 06:12:08 -06:00
fix list showcase
This commit is contained in:
parent
3bddaa71f6
commit
1f8ade26ad
9 changed files with 69 additions and 30 deletions
|
|
@ -1,15 +1,11 @@
|
|||
<template name="ionItem">
|
||||
{{#if isAnchor}}
|
||||
<a class="{{itemClasses}}" href="{{url}}" target="{{target}}">
|
||||
<div class="{{contentClasses}}">
|
||||
{{> UI.contentBlock}}
|
||||
</div>
|
||||
{{> UI.contentBlock}}
|
||||
</a>
|
||||
{{else}}
|
||||
<div class="{{itemClasses}}">
|
||||
<div class="{{contentClasses}}">
|
||||
{{> UI.contentBlock}}
|
||||
</div>
|
||||
{{> UI.contentBlock}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@ Template.ionItem.helpers({
|
|||
});
|
||||
}
|
||||
|
||||
if (this.avatar) {
|
||||
classes.push('item-avatar');
|
||||
}
|
||||
|
||||
if (this.iconLeft) {
|
||||
classes.push('item-icon-left');
|
||||
}
|
||||
|
|
@ -17,11 +21,13 @@ Template.ionItem.helpers({
|
|||
classes.push('item-icon-right');
|
||||
}
|
||||
|
||||
return classes.join(' ');
|
||||
},
|
||||
if (this.buttonLeft) {
|
||||
classes.push('item-button-left');
|
||||
}
|
||||
|
||||
contentClasses: function () {
|
||||
var classes = ['item-content'];
|
||||
if (this.buttonRight) {
|
||||
classes.push('item-button-right');
|
||||
}
|
||||
|
||||
return classes.join(' ');
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue