Disabling Limits in CRUD Columns #1145
Replies: 4 comments
-
Hey @zachweix thanks for the suggestion. Indeed this limitTerminator => fn($entry) => '... <a href="'.backpack_url('something/'.$entry->id.'/edit).'">(read more)</a>' What do you think ? |
Beta Was this translation helpful? Give feedback.
-
I think it would have to be either a closure or text. But if anyone wants to have a different default, I can also add a config to have a different default terminator. If you're ok with this, I can do this for all non-pro columns (I don't have access to the pro codebase 🙂) |
Beta Was this translation helpful? Give feedback.
-
Any thoughts on this, is this something I can try to work on now? |
Beta Was this translation helpful? Give feedback.
-
Hey @zachweix sure, I've talked this with the team, the only feedback I got was to switch Do it for one or two columns, we iterate the DX, check if it does what we want and how we want, and then we propagate the change to all other columns. Sounds good ? Thanks for your time and for taking care of this 🙏 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There are times when I want there to be no limit for a string in columns in the show operation. I accomplish this by just setting the limit to a very high number (e.g. 10000). While I know it's a minor operation for the
Str::limit($column['value'], $column['limit'], '…')
function to run, I think it would be more efficient to not run it at all. I am happy to go through all the columns and basically check if$column['limit'] === false
or perhaps$column['limit'] === null
then to not run it at all, but I want to know if that's something Backpack is interested in before taking care of thatBeta Was this translation helpful? Give feedback.
All reactions