Javascript 在网格模板中定义样式
我有一个ng网格,代码如下:Javascript 在网格模板中定义样式,javascript,css,angularjs,Javascript,Css,Angularjs,我有一个ng网格,代码如下: $scope.gridOptionsReports = { data: 'Reports', multiSelect: false, columnDefs: [ { field: 'Row', displayName: 'Row', width: 40 }, { field: 'OperationStatus', displayName: 'Operations ', width: 200 },
$scope.gridOptionsReports = {
data: 'Reports',
multiSelect: false,
columnDefs: [
{ field: 'Row', displayName: 'Row', width: 40 },
{ field: 'OperationStatus', displayName: 'Operations ', width: 200 },
{ field: 'Date', displayName: ' Date', cellTemplate: '<input class="fieldtext" type="text" ng-click="reportExistChecker(currentDocumentIndex)" ui-mask="9999/99/99" style="width: 80px; margin-right: 10px; text-align:center;">', width: 100 },
{ field: 'Consideration', displayName: 'Consideration', cellTemplate: '<label>Exist</label><input type="checkbox" ng-click="reportExistChecker(row)">', width: 200 }
]
};
$scope.gridoptions报告={
数据:“报告”,
多选:错,
columnDefs:[
{字段:“行”,显示名称:“行”,宽度:40},
{字段:'OperationStatus',显示名称:'Operations',宽度:200},
{字段:“日期”,显示名称:“日期”,单元格模板:“”,宽度:100},
{字段:“考虑因素”,显示名称:“考虑因素”,单元格模板:“存在”,宽度:200}
]
};
谢谢。什么不起作用?你这里的打字错误
margin righ
应该是margin right
谢谢。这是我的打字错误。但我的意思是任何样式,如宽度和文本对齐等,都不起作用。我的ui掩码也不起作用。什么不起作用?你这里的打字错误margin righ
应该是marg右侧
谢谢。这是我的输入错误。但我的意思是任何样式,如宽度和文本对齐等,都不起作用。而且我的ui掩码也不起作用。