-
-
Notifications
You must be signed in to change notification settings - Fork 64
Support editColumn()
and filterColumn()
on Column
#239
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
Comments
I love the idea since this is what I am also doing now with the export functionalities via exportFormat and exportRender. And I think we should also consider the orderColumn callback? For edit on the other hand, I tend to use render, renderRaw, and delegate it to js/client side when possible. I think it's better to make the server-side response as small as possible for better performance. I agree with your idea of adding these functionalities to the Column definition. Thanks! |
Yes, I forgot the I also try to use render, renderRaw when possible, but in some cases it can be more convenient to use |
I took a look on this be not sure how to implement it. If I understand properly, there is no relationship between the HTML Builder and the DataTable classes. So it's currently not possible to get the callbacks from the column builder to apply them to the Datatable. |
I was not considering the DataTable Buttons plugin because those features are not really related to buttons like the export feature. |
Hi,
By using the DataTables Html Plugin, we can easily declare our columns in
getColumns()
method, but if we need to apply custom filters or edit, we must do it in thedataTable()
method.When we have a lot of columns, it can be a bit confusing and not easy to manage.
We need to declare columns in 1 place and filter/edit then in another place.
I would like to suggest to implement new methods on the
Column
class to automatically registeredit
andfilter
in the datatable.The result will look like this:
What do you think?
The text was updated successfully, but these errors were encountered: