Implementing a configurable table using Ng-grid

Source: Internet
Author: User

With Angularjs, there are also some regrets: Many are based on jquery or other components that need to be integrated in order to be fluent in Angularjs. But some of the more complex components, such as grid, have a considerable amount of work to integrate.

In most cases, it is easy to use ANGULARJS to easily implement simple forms and even click to modify such features. But if you want to add more features, such as dragging and changing the order of the columns, clicking the header sort, dragging the column widths, and hiding some of the columns, it's not that easy. If you want to add the function of grouping, it will be very troublesome. At this point we need a grid component that works well with Angularjs.

These days I tried the Http://angular-ui.github.com/ng-grid/, it is completely based on the Angularjs write, so you can use ANGULARJS ideas to interact with it. The use feels good, the basic function is complete, interacts with it to realize the need effect is also very smooth. I used it to simply implement a table designer, which I'll show you here.

The functions I implemented are as follows:

  1. After you specify a data source, you can open the Table Designer, customize the header of each column, add delete columns, adjust column order, and more
  2. The adjusted parameters can be removed and saved in the server
  3. In a formally used table, the previously designed parameters can be read directly using

Because the documentation and examples for this project are well written and currently in a tense state of improvement, I don't detail how to use them here, mainly to demonstrate the effects. Want to use friends can on the project homepage to see, there is a problem in issues, the author reply very soon very enthusiastic.

http://ju.outofmemory.cn/entry/12828

Implementing a configurable table using Ng-grid

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.