Skip to content

Instantly share code, notes, and snippets.

@kashcode
Forked from josebalius/cellOptions.js
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save kashcode/36b7dabe802839ab0717 to your computer and use it in GitHub Desktop.

Select an option

Save kashcode/36b7dabe802839ab0717 to your computer and use it in GitHub Desktop.
{
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%
cssClass: "" // css class that the grid will apply on the column headers
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment