1

I am trying to add new row to the column header in ui-grid but not finding a way to achieve this. Tried searching the documentation as well as the google a lot but of no use. Can any one please help me in this regard.

Here is the plunker: http://plnkr.co/edit/ZkbGvLe9myc3nB5riaAE?p=preview

{name: 'name', displayName: 'Name \n(editable)' },

I am trying to add new line here between name and editable.

Also is it possible to span the column in ui-grid (I should be able to export the data also in same format.. according to the already bug opened, it is not possible but has anyone tried it?)

2
  • looks like your looking for something like this right? stackoverflow.com/questions/28730621/… Commented Feb 26, 2016 at 6:02
  • Ya..since I am using ui-grid CDN, so I dont want to create my styling now.. anyway..I got answer now from @shagrin Commented Feb 26, 2016 at 6:18

1 Answer 1

1

You can use headerCellTemplate, the simplest would be:

{ name: 'name', headerCellTemplate: '<div class="">Name <br>(editable)</div>' },

Here is the link to full header cell template from ui-grid, you can customize it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.