[feature request] setActionButton with "where"

would be nice to have a “where clause” for setActionButton.

for example if I want to make a button to download an image, I would like to show it only if the “image” field is not null, or something like that

I think to accomplish that now I have to hide the button with some jQuery magic but I haven’t tried yet…