Skip to content

Conversation

@PaulL1
Copy link
Contributor

@PaulL1 PaulL1 commented Sep 7, 2014

Modify defaultColumnBuilder to add a headerCellFilter property to columnDef,
allowing a translate to be applied to the header without needing to use a custom
header template.

Modify ui-grid-header-cell directive to use the header template from the
column builder, rather than ignoring it.

Minor modifications to templates because the result of a compiled template
seems a little different than an inline template, and therefore some classes
ended up in different places within the ng-repeat. This could alternatively
be fixed in the css, but css is really not my thing.

Noted that on my mac in chrome the column menus are not correctly attaching
to the columns, but I believe this is a pre-existing problem not caused by
this change.

The diff on ui-grid-header-cell.js makes it look like far more change than it is. I've pushed the old link content into a compile - post, and written a new pre. I didn't make any changes in the old link, but every line had to be indented so they all show as changed.

…erCell Modify defaultColumnBuilder to add a headerCellFilter property to columnDef, allowing a translate to be applied to the header without needing to use a custom header template. Modify ui-grid-header-cell directive to use the header template from the column builder, rather than ignoring it. Minor modifications to templates because the result of a compiled template seems a little different than an inline template, and therefore some classes ended up in different places within the ng-repeat. This could alternatively be fixed in the css, but css is really not my thing. Noted that on my mac in chrome the column menus are not correctly attaching to the columns, but I believe this is a pre-existing problem not caused by this change.
@c0bra c0bra added this to the 3.0 milestone Sep 10, 2014
@c0bra c0bra self-assigned this Sep 10, 2014
PaulL1 added a commit to PaulL1/ng-grid that referenced this pull request Sep 13, 2014
This branch combines the current upstream/master with pull requests in upstream that made merging angular-ui#1501 in particular difficult. Key changes are: 1. Add hide column to column menu Also includes "google translation" standard translations. Noted that error is occurring intermittently in testing: ui-grid watch for new pinned containers fires watch for right container FAILED Tested and validated that this is also occurring on upstream/master, so presume not to do with changes I've made. 2. Fix column menu with two grids: move from self to scope Moved most of column-menu methods and variables onto $scope so that context didn't get misaligned, and therefore two grids is possible. Added tutorial page showing two grids. 3. HeaderCellTemplate from column builder used, filter permitted on headerCell Modify defaultColumnBuilder to add a headerCellFilter property to columnDef, allowing a translate to be applied to the header without needing to use a custom header template. This translate in my case is angular-translate, used for internationalisation. Modify ui-grid-header-cell directive to use the header template from the column builder, rather than ignoring it, which would address a concern raised by @Shazypro on gitter. Minor modifications to templates because the result of a compiled template seems a little different than an inline template, and therefore some classes ended up in different places within the ng-repeat. This could alternatively be fixed in the css, but css is really not my thing. Noted that on my mac in chrome the column menus are not correctly attaching to the columns, but I believe this is a pre-existing problem not caused by this change.
@PaulL1 PaulL1 closed this Sep 13, 2014
@c0bra c0bra removed the in progress label Sep 13, 2014
@PaulL1 PaulL1 deleted the cell_header_filter branch September 26, 2014 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants