【发布时间】:2015-09-02 03:07:37
【问题描述】:
在我的情况下,我使用http://vitalets.github.io/angular-xeditable/#editable-table 编辑整个表格,如果表格有两行或更多行并单击编辑并且我更新了一些值(文本值),在单击事件时我想在控制器中获取这些更新的值.你能给些建议么。 http://jsfiddle.net/0amredgj/3/
var app = angular.module("app", ["xeditable"]);
app.run(function(editableOptions) {
editableOptions.theme = 'bs3';
});
app.controller('Ctrl', function($scope) {
$scope.user = {
name: 'awesome user',
name2: 'awesome222 user',
name3: 'awesome user',
name4: 'awesome222 user'
};
$scope.result = function(data){
alert($scope.user.name)
alert($scope.user.name2)
alert($scope.user.name3)
alert($scope.user.name4)
}
});
【问题讨论】:
标签: angularjs x-editable