Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/475.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 角度JSUI网格行合并_Javascript_Angularjs - Fatal编程技术网

Javascript 角度JSUI网格行合并

Javascript 角度JSUI网格行合并,javascript,angularjs,Javascript,Angularjs,我已经在下面给出的这个插件中完成了单元合并 app.controller('MainCtrl',['$scope','$http',函数($scope,$http){ $scope.gridOptions={ 行高:50, columnDefs:[ {字段:'名称'}, {字段:'phoneList',名称:'Phone number',单元格模板:'{{item}}} ], EnableColumnResizeing:true }; $http.get('data.json') .成功(功能

我已经在下面给出的这个插件中完成了单元合并

app.controller('MainCtrl',['$scope','$http',函数($scope,$http){
$scope.gridOptions={
行高:50,
columnDefs:[
{字段:'名称'},
{字段:'phoneList',名称:'Phone number',单元格模板:'{{item}}}
],
EnableColumnResizeing:true
};
$http.get('data.json')
.成功(功能(数据){
$scope.gridOptions.data=数据;
});
}]);
]

但是我想要电话号码中的行划分。 姓名应为一行,分为两行,并带有电话号码。 现在我在一行中有多个电话号码。 谁能帮我解决这个问题。
提前感谢

您到底想要什么?我想要将一行分成两行,因此名称是一行,所有电话号码都是名称行下方的单独行?他们的“头衔”还应该在上面吗?
    app.controller('MainCtrl', ['$scope', '$http', function ($scope, $http) {
  $scope.gridOptions = {
    rowHeight:50,
    columnDefs: [
      { field: 'name' },
      { field: 'phoneList', name: 'Phone Numbers', cellTemplate:'<div ng-repeat="item in row.entity[col.field]">{{item}}</div>'}
    ],
     enableColumnResizing: true
  };

  $http.get('data.json')
  .success(function (data) {
    $scope.gridOptions.data = data;
  });
}]);