var GroupOrdersDetailController = $scope $http $timeout hrDialog HrBaseCode hrProgress HrDrugBillingAttr$filter function $scope $http $timeout hrDialog HrBaseCode hrProgress HrDrugBillingAttr$filter
To add a new field in the table, you need to modify the columnDefs array in the code.
- Add a new object to the columnDefs array, specifying the field name, display name, width, and cell template.
- In the cell template, use the ngCellText directive to display the value of the new field.
Here's an example of adding a new field called "newField":
{
field: 'newField', displayName: 'New Field', width: "10%", cellTemplate: '' +
'<div class="ngCellText">{{row.getProperty(col.field)}}</div>'
}
Make sure to replace "newField" with the actual field name you want to display, and "New Field" with the desired display name for the field. Adjust the width as needed.
After making the changes, the new field should be displayed in the table
原文地址: https://www.cveoy.top/t/topic/iEaF 著作权归作者所有。请勿转载和采集!