Replies: 3 comments
-
Thank you for your detailed question about improving the flexibility of table updates in the editable-columns feature of Backpack. I'll address your proposals based on the information available in the knowledge sources.
Regarding your specific questions:
It's worth noting that the Editable Columns add-on has seen regular updates and improvements, as evidenced by the Changelog. Your proposals seem to be in line with the direction of making the feature more flexible and powerful. For the most up-to-date and specific guidance, I would recommend reaching out to the Backpack community or maintainers directly. They would be best positioned to comment on the feasibility and potential implementation of these features. Relevant sources: Editable Columns|2.1.0 28-Nov-2022 |
Beta Was this translation helpful? Give feedback.
-
Hey @tomsb Thanks for your suggestion and efforts. @pxpm, what do you think? |
Beta Was this translation helpful? Give feedback.
-
Thanks @tomsb for the suggestion and for providing the code. I think the first suggestion is something that can be very useful, I've already created a PR from your code, did a small changes and released editable-columns 3.0.11 that provides this functionality. Regarding the second one, I am not sure about it, I think it may complicate the code a lot for a small benefit. We already load a limited set of entries in the table, so having more workarounds to just reload row X and Y is cumbersome IMO. I will be closing this now, please allow a few moments for our private repository to pick the changes and you should be able to get the new version with the changes you proposed. Nice idea, clean implementation, perfect 👍 Thanks again @tomsb |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been working on improving the flexibility of how table updates are handled when certain columns are modified. In some cases, we want to reload the entire table to ensure everything stays consistent. However, for other columns, a full table redraw may not be necessary, and only the updated data needs to be refreshed. To address this, I propose adding a configurable
forceReloadAfterUpdate
feature.There could be two ways to set
forceReloadAfterUpdate
:Changes in
minor_update_client_logic.blade.php
Conditional Reloading
A more advanced technique would be to update the
forceReloadAfterUpdate
variable after each AJAX request, allowing for a more granular approach. For instance, you might want to reload the entire table forcolumn_name_1
under certain conditions but not always. This can be managed through custom response rules/variables insaveMinorUpdateEntry()
.Row-Level Updates
Additionally, there could be another option to reload only specific table rows using
getMinorUpdateRow()
. For example:Then there could be one more option to reload only specific table rows using
getMinorUpdateRow()
, for example:This option would require a larger update in
minor_update_client_logic.blade.php
to identify the exact rows that need updating.Beta Was this translation helpful? Give feedback.
All reactions