KAUG/ngExcel — pull request #1 by doohee323 (2013-10-23 05:14:13+00:00)
Title: attribute of directive and ng-grid element direct reference

1) attribute of directive
- principle : attributes easily modified

width="800" =>
template: "

",
ng-style <-
scope.myprop = function() {
return {
width: attr["width"] + 'px',
height: attr["height"] + 'px'

2) ng-grid element direct reference
- principle : element for rigid trait according to predefined ng-excel type (etc. for mobile, for desktop)

$scope.gridOptions = {
data: 'ngExcelData',
columnDefs: 'columnDefs',

'columnDefs' =>

$scope.columnDefs = [
{field:'CHK', displayName:'chk', width: 50 ,
cellTemplate:checkboxCellTemplate,
sortable:false, pinned:false, enableCellEdit: false },
{field:'name', displayName:'name', width: 100, enableCellEdit: true},
{field:'contact', displayName:'contact', width: 300, enableCellEdit: true}
];