Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular UI Grid space between capital letters in header

When I use multiple capital letters in the header cells (e.g. GPRS) they automatically get separated by spaces (G P R S). This gets particularly annoying when I have two words (GPRS Signal is displayed as G P R S Signal) or two acronyms (GPRS EDGE is displayed as G P R S E D G E). Is this meant to be like this? If so, how can i disable it?

like image 233
Cox Szg Avatar asked Feb 25 '15 20:02

Cox Szg


1 Answers

I just found a way around this. In the columnDefs property of your gridOptions add a displayName for the column that contains multiple capital letters. Something like this:

$scope.gridOptions = {
  columnDefs: [
    { name: 'GPRS', displayName: 'GPRS', field: 'gprsField' }
  ]
};
like image 88
bbak Avatar answered Oct 06 '22 14:10

bbak