AngularJS CRUD Grid v5: Now with Dynamic Columns
1 min read
I just added support for dynamic columns. Before you were limited to Id and Name, now you can specific the columns as a Json object in the directive.
<div crud-grid table='person' columns='[{"name":"Id", "class":"col-md-1", "autoincrement": "true"}, {"name":"Name"}]'></div>- name*: The name of the column. Must match the column name in your db
- class*: The css class that you want to be applied to that column TH tag
- autoincrement*: Set to true if you don’t want the user to set. Useful for columns that are autoincremented primary keys.
CODE: https://github.com/jongio/AngularJS-WebApi-EF

Enjoy!
Jon
Share:
Share on LinkedIn
Quick Share: Your custom post text has been copied to your clipboard! Click the button below to open LinkedIn's share dialog, then paste it.
💡 Tip: LinkedIn will open in a new tab. Use Ctrl+V (or Cmd+V on Mac) to paste your text.
Note: LinkedIn will show the article preview. You can add your custom text above it.