There are some models for the exact purpose available already.
I modeled these ones with a few tweaks compared to the existing ons.
They are more snug. They sit more snug in the leg of the chair and are not as easy to be unhooked from the chairs. and also the slot is tighter, so the basket or tray is sitting more snug in the slider.
Also the parts are a bit smaller (should save a bit of tim printing. And the parts ca nbe printed without support material.
The part for the plastic bin are not yet tested. If you have comment on it, let me know.
The author marked this model as their own original creation.