Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: defaults for column min-width and max-width #5119

Closed
betsydupuis opened this issue Feb 15, 2016 · 1 comment
Closed

Feature request: defaults for column min-width and max-width #5119

betsydupuis opened this issue Feb 15, 2016 · 1 comment

Comments

@betsydupuis
Copy link

It looks like this feature once existed, but has been deprecated.
#3941

I would like to be able to define a default min-width and max-width. I'm working with a very large data set and this would be useful rather than looping through each columnDef and setting the width settings.

Here is the suggested solution from horizontal scrolling:

  $scope.gridOptions.columnDefs = [];
  $timeout( function() {
    for (var colIndex = 0; colIndex < colCount; colIndex++) {
      $scope.gridOptions.columnDefs.push({
        name: 'col' + colIndex,
        width: Math.floor(Math.random() * (120 - 50 + 1)) + 50
      });
    }
  });
@mportuga
Copy link
Member

This feature already exists:
http://ui-grid.info/docs/#!/tutorial/204_column_resizing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants