Newshapes created by a layout don’t have the clickmode parameter, so they don’t perform a callback when clicked on! Furthermore the layout doesn’t acknowledge clicks on newshapes as an event.
Is there any way I can add the clickmode parameter to a layout.newshape myself? Failing that, can I change the type produced by layout parameter “dragmode=” to my own custom type? dragmode = ‘drawrect’ produces the correct shape, but won’t respond to clicks.
None of dragmode =
'drawcircle' , or
'drawrect' reacted to being clicked on either.