The goal of this post is to extend the AngularJS CRUD Grid that we created in a previous post: AngularJS – CRUD Grid I UPDATE:
Results
Code is available on github: https://github.com/softwarejc/angularjs-crudgrid. Feel free to play with it, find errors and write improvements. You can see a live demo here: AngularJS CRUD Grid III demo.
In that post we wrote a single page application (SPA) to display a list of items inside a grid. The grid allows all the CRUD operations: Create, Read, Update and Delete items. We will add now the following requirements:
- # 1 Confirmation dialog before deleting an item.
- # 2 Column ordering.
- # 3 CRUD Grid as a directive
- # 3.1 Dynamic columns generation.
- # 3.2 Column options: Type, visibility, header, mandatory.
- # 4 Cell editor directive, text and date mode. Use AngularJS date picker in date format columns
Results
You can see a demo here: AngularJS CRUD Grid II demo. I will share the interesting code of the application in this post and one of my next steps will be to upload all the code to GitHub.