Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add row condition for item detail #404
this PR allows to set callback as condition to render or not to render item detail for a specific row.
It is called directly on ItemDetail, are you ok with this aproach? Or should I rework it in a way like existing row conditions - new methods DataGrid::allowItemDetail(callable) and Row::hasItemDetail() ?
I like this way more, but I can be wrong.
@roman-vohnik Could you please change the "render-condition" to for example "condition-callback"? Render condition is a bit misleading in my opinion. It does not render enything, it just enables/disables the item detail. Condition callback is also not as good as I want, but i have no idea how to name it better.
Anyone with better name?