insert ng-click event into ng-grid

前端 未结 3 1630
暖寄归人
暖寄归人 2020-12-15 11:14

i want to do something that i don\'t know if it is possible

HTML


    
    

        
3条回答
  •  庸人自扰
    2020-12-15 12:17

    $scope.ShowDetails=function(_obj)
    {
       alert('Hi! ' + _obj);
    }
    
    $scope.gridOptions = {
        columnDefs: [
          { name: 'Search', field: 'Col1', cellTemplate: '
    ' }, { name: 'Col2', displayName: 'Col2' }, ]};

    Here the example to attach an event to a ui grid cell.

提交回复
热议问题