【问题标题】:writing the data into local modal in angular-xeditable在 angular-xeditable 中将数据写入本地模态
【发布时间】: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


    【解决方案1】:

    试试这个小提琴:

    <input ... e-name="username">
    

    fiddle

    【讨论】:

      猜你喜欢
      • 2014-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多