mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-05-26 22:06:41 -06:00
Pass an id with `idAttr` in the ionItem, in case you need to target
something by id. ex:
`{{#ionItem class="playlistMain" idAttr=this._id}}`
11 lines
297 B
HTML
11 lines
297 B
HTML
<template name="ionItem">
|
|
{{#if isAnchor}}
|
|
<a class="{{itemClasses}}" href="{{url}}" id="{{idAttribute}}" target="{{target}}">
|
|
{{> UI.contentBlock}}
|
|
</a>
|
|
{{else}}
|
|
<div class="{{itemClasses}}" id="{{idAttribute}}">
|
|
{{> UI.contentBlock}}
|
|
</div>
|
|
{{/if}}
|
|
</template>
|