Today I came across something I thought would be very simple. Disabling the collapse of a Panel Card. Or more accurately multiple panel cards of various types across multiple pages.
Ultimately I believe this should be an easy setting on the entity in the application studio.
“But Ryan, you can disable the Panel Card Style” I hear you shouting. But alas, although this works for Panel Card Grids, this doesn’t work for the basic Panel Card (and lets be honest, it would make a web designer go and cry in the corner).
So if you’re looking for a way to assist your clumsy clicking colleagues too, please vote for that.
However I did find a complicated work around that suits absolutely nobody but was interesting to do. Using a chrome plugin I injected an event listener onto the panel’s header span (the onClick of which triggers the expand and collapse) to stopImmediatePropagation, which does indeed interrupt the collapse and force the panel to stay open. I have added this in via a chrome plugin for use with Kinetic however this currently just disables all panel cards from collapsing rather than just the ones I specifically want it to.
Does anyone know a way to achieve this in application studio alone? Without having to faff about too much? I feel like its so simple it should be obvious, and I’m probably missing something. So please let me know if you have any nice solutions to this problem.
Just thinking aloud from what I have seen (or think i have seen) but IIRC there is the ability to expand a card on a button click, if my memory is correct on that could you put that into the on-click event? I could be completely out to lunch on this, its just something in my brain says when I had a consultant walking me through Application Studio that was something he showed.
Thanks for the response, I tried using the events triggered to re-open effectively. But then the panel still closes and bounces back open. I was doing this with a set-value on the collapse event. For some reason the application studio will not let you hook into the click even that triggers it.
I’m hoping to stop it from reacting to the click at all basically.
Yeah, upon looking at the configurator ‘version’ of application studio I believe I am thinking of the panel sliding out from the side. I did try to create an override event with the cancel event as its action but that did not seem to do anything.
I tried to cancel it with an event that’s hooked on Before onPanelCollapsed … but it wouldn’t register and did not execute my Before event.
I added an EpBinding to the panel card and tried to cancel the onClick event, but that also does not execute when clicking on the panel
Could you move all your content out into a Container instead of using a panel card?
Yeah I moved all the content into a container, but the styling is lost, and it looked very janky… so I moved it back. Where the panels are used so heavily across kinetic, it provides the consistent styling which is the main reason I’m trying to persist with it.
And I tried almost the exact same events but it was just as ineffective.