Best way to manipulate QueryWebPart buttonbar buttons?

LabKey Support Forum (Inactive)
Best way to manipulate QueryWebPart buttonbar buttons? Nick Kerr  2013-01-09 18:02
Status: Closed
 
Hi Tobin,

Unfortunately, there is not a real good way to access the rendered button as we only provide a click handler.

However, there are couple of injection options:

1. Using the onRender callback from the button bar configuration you could inject your own buttons and still have access to the DataRegion object and control over the buttons state.

2. Turn your button into a menu using the <item> property on <ButtonBarItem> and inject menu items onRender.

On our side, we should probably look at providing a DOM id for these generated buttons so they would be easier to have control over in an onRender event.

Thanks,
Nick