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

Make formatting columns in grid easier, once model is linked #162

Closed
romaninsh opened this issue May 11, 2017 · 0 comments
Closed

Make formatting columns in grid easier, once model is linked #162

romaninsh opened this issue May 11, 2017 · 0 comments

Comments

@romaninsh
Copy link
Member

romaninsh commented May 11, 2017

It should be simpler to add or change Column objects for columns. By default we are re-using same column for all columns, so this shouldn't be difficult.

$grid->setModel(new User($db));
$grid->setColumn('user', ['Link', 'mypage']);

Please give me feedback on what method should be called:

  • addFormatter
  • setFormatter
  • format
  • setColumn
  • changeColumn

Also in some cases you want to change format in others - add extra formatter. See #67, #92

@romaninsh romaninsh changed the title Add formatters for grid Make formatting columns in grid easier, once model is linked May 11, 2017
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

1 participant