ngGrid checkbox应用
来源:互联网 发布:jquery点击事件源码 编辑:程序博客网 时间:2024/05/18 18:01
$scope.mySelections = []; //初始化复选框的值
$scope.gridOptions = {
rowTemplate: '<div style="height: 100%"><div ng-style="{ \'cursor\': row.cursor }" ng-repeat="col in renderedColumns" ng-class="col.colIndex()" class="ngCell ">' +
'<div class="ngVerticalBar" ng-style="{height: rowHeight}" ng-class="{ ngVerticalBarVisible: !$last }"> </div>' +
'<div ng-cell></div>' +
'</div></div>',
enableRowSelection: true,
enableCellEditOnFocus: true,
showSelectionCheckbox: true,
selectedItems:$scope.mySelections,//声明复选框选中所获取值
enablePinning: true,checkboxHeaderTemplate:"<div></div>",
columnDefs: [{
field: 'acode',
displayName: '代码',
enableCellEdit: false,
width:80
}
],
enablePaging: false,
showFooter: false
};
//以下是我的提交按钮
$scope.submitYLZForm=function(isValid){
if(isValid){
//遍历被选中复选框的值
angular.forEach($scope.mySelections,function(item){
consolo.log(item);
});
}
}
0 0
- ngGrid checkbox应用
- checkbox应用
- checkbox应用
- autoit中的checkbox应用
- Android CheckBox应用实例
- Android应用开发--checkbox
- CheckBox和RadioButton应用
- CheckBox介绍与应用
- checkbox控件应用
- radio,selelct,checkbox应用
- php中checkbox的应用
- Gridview 中checkBox的应用
- GridView 中 CheckBox 简单应用
- checkbox全选,全不选的应用
- 多选项CheckBox 的应用
- c# web gridview checkbox 应用
- checkbox 与JS的应用
- 对CheckBox类的应用
- CI框架中集成CKEditor编辑器的教程
- 牛小新该怎么走
- IntelliJ IDEA14.1中java项目Maven中没有配置JDK时的问题
- 今年暑假不AC
- 多线程还是多进程的选择及区别
- ngGrid checkbox应用
- [leetcode]Plus One C语言
- WebService入门介绍及案例分析(1)
- 实用网址
- 杭电ACM2049java做法
- Linux学习日记--基础命令(6)--grep及正则表达式
- PLC中用量累加时,精度越来越差的原因和处理方法:
- Android 布局管理器学习
- name选择器所以一级节点偶数行换样式(juqery)