【发布时间】:2016-02-06 09:09:51
【问题描述】:
我在带有 ngHandsontable 的 Angular 应用程序上使用 handsontable。我可以看到我需要在表设置中将 search 设置为 true,这应该可以使查询方法可用。
有人可以解释我如何通过我的角度控制器访问该方法吗?
<input class="" id="handsonSearch" placeholder="Search..." ng-model="searchQuery" />
<hot-table settings="tableSettings.settings"
datarows="mappingData"
col-headers="true"
height="700">
<hot-column data="Column1" title="'Column One'"></hot-column>
</hot-table>
角度
function GlobalMappingController($scope) {
$scope.tableSettings = {
settings: {
contextMenu: true,
colHeaders: true,
dropdownMenu: true,
afterChange: afterChange,
beforeChange: beforeChange,
search: true,
query: $scope.searchQuery
}
};
【问题讨论】:
标签: handsontable