This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var conditions = [ | |
{ | |
column: "name", | |
operator: "=", | |
value: "John" | |
}, | |
{ | |
join: "OR" | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = [ | |
1, | |
[2, 3], | |
[3, [4, 5]] | |
] | |
var flatten = function(arr) { | |
// Implement this function | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = [ | |
{ | |
name: "John", | |
age: 20 | |
}, { | |
name: "Ally", | |
age: 25 | |
}, { | |
name: "Jordan", | |
age: 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
field: "", // prop key on the object, ie: {firstName: "John"}, your field would be "firstName" | |
displayName: "", // this is the label that the grid will display on the column headers, | |
render: function() {}, // use this function when you want a custom cell. It must return a string or React component | |
sort: true, // this controls whether the grid allows sorting on this cell or not, default is true, set to false to disable | |
width: "10%" // the default is 10% | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="example"> | |
<head> | |
<title>ngReactGrid Basic Example</title> | |
<link rel="stylesheet" type="text/css" href="css/ngReactGrid.css"> | |
</head> | |
<body> | |
<div ng-controller="BasicExampleController" style="width: 100%"> | |
<ng-react-grid grid="grid"></ng-react-grid><br /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Properties you can set | |
columnDefs: [], | |
data: [], | |
height: 500, | |
localMode: true, | |
/** | |
* Use this function when setting localMode = false, | |
* it will be called for every change in page size, sort, search, or pagination. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="example"> | |
<head> | |
<title>ngReactGrid Basic Example</title> | |
<link rel="stylesheet" type="text/css" href="css/ngReactGrid.css"> | |
</head> | |
<body> | |
<div ng-controller="BasicExampleController" style="width: 100%"> | |
<ng-react-grid grid="grid"></ng-react-grid> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="example"> | |
<head> | |
<title>ngReactGrid Basic Example</title> | |
<link rel="stylesheet" type="text/css" href="css/ngReactGrid.css"> | |
</head> | |
<body> | |
<div ng-controller="BasicExampleController" style="width: 100%"> | |
<ng-react-grid grid="grid"></ng-react-grid> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="example"> | |
<head> | |
<title>ngReactGrid Basic Example</title> | |
<link rel="stylesheet" type="text/css" href="css/ngReactGrid.css"> | |
</head> | |
<body> | |
<div ng-controller="BasicExampleController" style="width: 100%"> | |
<ng-react-grid grid="grid"></ng-react-grid> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="example"> | |
<head> | |
<title>ngReactGrid Basic Example</title> | |
<link rel="stylesheet" type="text/css" href="css/ngReactGrid.css"> | |
</head> | |
<body> | |
<!-- Your JS Sources --> | |
<script src="js/angular.min.js" type="text/javascript" ></script> | |
<script src="js/react-0.10.0.js" type="text/javascript" ></script> |