- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
有没有办法在 AngularJS 智能表中的行选择上触发事件?
这是其他线程中的主题,但仍然没有答案。
Unable to select the grid item using SmartTable in Angular JS
最佳答案
我需要此功能以便在选择至少 1 行时显示面板。我最初设置了一个 watch ,但觉得太贵了。
我最终在 stSelectRow 指令中添加了一个回调。
ng.module('smart-table')
.directive('stSelectRow', function () {
return {
restrict: 'A',
require: '^stTable',
scope: {
row: '=stSelectRow',
callback: '&stSelected' // ADDED THIS
},
link: function (scope, element, attr, ctrl) {
var mode = attr.stSelectMode || 'single';
element.bind('click', function ($event) {
scope.$apply(function () {
ctrl.select(scope.row, mode, $event.shiftKey);
scope.callback(); // AND THIS
});
});
//***///
}
};
});
tr ng-repeat="row in customerResultsTable" st-select-row="row" st-select-mode="multiple" st-selected="rowSelected()">
关于AngularJS Smarttable - 选择事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28042128/
在 SAPUI5 中,当您第一次将 sap.m.DatePicker 添加到您的应用程序时,需要几秒钟时间来加载所需的文件并打开日期选择器。在API他们解释说: Note: The sap.ui.un
有没有办法在 AngularJS 智能表中的行选择上触发事件? 这是其他线程中的主题,但仍然没有答案。 Unable to select the grid item using SmartTable
我们已经实现了 SmartTable,一切正常。我只想删除 SmartTable useTablePersonalisation 选项提供的 Filter 选项。 这可能吗? 问候,马亚克 最佳答案
我正在使用 angularJS 和智能表格框架在 html 中管理我的表格: 可以使用 SmartTable 属性选择表格行:st-select-row="row"。 在用户选择行并单击“添加”按钮后
我目前正在尝试使用我们的 MII 服务器中的 OData 填充智能表(xml View )。我不断收到以下错误: 错误:无法从 ./Component-changes.json 加载资源 PATH/C
我是一名优秀的程序员,十分优秀!