Problems with custom buttons on the toolbar

Answered
Vincenzo asked 3 days ago

Hello team, 

I wanted to report a problem with custom buttons on the toolbar. I added two buttons to simulate Undo/Redo options on the configuration. When I launch my program the two buttons are disabled, but if I click on the bottom FullScreen these become enabled.

To disable buttons we use opacity=.3

 

Regards

Vincenzo

Attachments:
toolbar buttons.png

1 answer

Public
Maksym Diachenko Maksym Diachenko Flexmonster 2 days ago

Hello, Vincenzo,

Thank you for reaching out to us.

Since the Undo/Redo buttons are custom additions to the toolbar, the logic that enables/disables them is implemented on your side rather than by Flexmonster itself, so we can't say for certain what's happening in your setup, but here are the likely causes:

  • Entering full screen triggers a redraw of Flexmonster, clearing any classes/inline styles previously applied via JS and overriding the disabled state.
  • The event/condition meant to enable Undo/Redo after an action is also unintentionally firing when entering full screen.

If neither applies and the cause is still unclear, could you please provide the following information so that we can investigate this further:

  • The CSS selectors and styles you are using to toggle the button state.
  • Any code that toggles the buttons between enabled and disabled - specifically, what condition or event is supposed to trigger the switch, how the styles are applied (e.g., inline via JS or by page-wide styles)?
  • Is it expected that the buttons start disabled when the report first loads because there's nothing to Undo/Redo yet, and only become enabled after an action?

Looking forward to your reply.

Best regards,
Maksym

Please sign in or register to submit your answer