Internationalization 如何将值绑定到Aurelia中的TCustomAttribute?
我试图实现以下结果:我有一组值,这些值来自一个数组,为了填充一个HTML表,我对该数组进行了迭代。此外,我有一个图标,用户可以浏览,可以看到其中的数据来自数组和翻译文件的翻译键 我想将第二个参数绑定到TCustomAttribute,以便向用户显示他们编辑的另一个数据 我如何在奥雷利亚做到这一点Internationalization 如何将值绑定到Aurelia中的TCustomAttribute?,internationalization,aurelia,aurelia-templating,Internationalization,Aurelia,Aurelia Templating,我试图实现以下结果:我有一组值,这些值来自一个数组,为了填充一个HTML表,我对该数组进行了迭代。此外,我有一个图标,用户可以浏览,可以看到其中的数据来自数组和翻译文件的翻译键 我想将第二个参数绑定到TCustomAttribute,以便向用户显示他们编辑的另一个数据 我如何在奥雷利亚做到这一点 <template> <table> <thead> <th><span>Id</span></th>
<template>
<table>
<thead>
<th><span>Id</span></th>
<th><span>Name</span></th>
<th><span>Description</span></th>
<th><span>Date</span></th>
</thead>
<tbody>
<tr repeat.for="item of data">
<td><span>${item.Id}</span></td>
<td><span>${item.Name}
<a data-toggle="popover" t="[data-content]pending_name ${data.Name}" data-trigger="hover">
<i class="fa fa-info-circle"></i>
</a>
</span></td>
<td><span>${item.Description}</span></td>
<td><span>${item.Date}</span></td>
</tr>
</tbody>
</table>
</template>
身份证件
名称
描述
日期
${item.Id}
${item.Name}
${item.Description}
${item.Date}
查看t-params属性,它允许您传入其他参数。有关详细信息,请参见《官方指南》中的t-params属性,该属性允许您传入其他参数。有关更多信息,请参见官方指南