Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internationalization 如何将值绑定到Aurelia中的TCustomAttribute?_Internationalization_Aurelia_Aurelia Templating - Fatal编程技术网

Internationalization 如何将值绑定到Aurelia中的TCustomAttribute?

Internationalization 如何将值绑定到Aurelia中的TCustomAttribute?,internationalization,aurelia,aurelia-templating,Internationalization,Aurelia,Aurelia Templating,我试图实现以下结果:我有一组值,这些值来自一个数组,为了填充一个HTML表,我对该数组进行了迭代。此外,我有一个图标,用户可以浏览,可以看到其中的数据来自数组和翻译文件的翻译键 我想将第二个参数绑定到TCustomAttribute,以便向用户显示他们编辑的另一个数据 我如何在奥雷利亚做到这一点 <template> <table> <thead> <th><span>Id</span></th>

我试图实现以下结果:我有一组值,这些值来自一个数组,为了填充一个HTML表,我对该数组进行了迭代。此外,我有一个图标,用户可以浏览,可以看到其中的数据来自数组和翻译文件的翻译键

我想将第二个参数绑定到TCustomAttribute,以便向用户显示他们编辑的另一个数据

我如何在奥雷利亚做到这一点

<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属性,该属性允许您传入其他参数。有关更多信息,请参见官方指南