我的 ng-grid 设置为 multiSelect: false,我想在单击一行时显示或可能在外部查询一些附加数据。例如,当从列出电子邮件的网格中选择一个时,该场景会显示电子邮件的正文。
<div ng-app="app" ng-controller="emailController">
<div class="gridStyle row-fluid" ng-grid="gridOptions">
<input placeholder="enter to filter title" ng-model="filterText" ng-change="filterTxt(this)"/>
<label>Include Sent: <input type="checkbox" title="IncludeCompleted" ng-model="_IncCompleted" ng-click="IncludeCompleted()"></label>
</div>
<div class="row-fluid gridStyle">
<p></p>
<br />
<br />
<input type="text" ng-model="messageBody" />
</div>
</div>