I have a panel card grid in a custom layer that I would like to set the auto-resize all columns property to be true automatically.
Following the conversations had here:
And here:
I feel like this should be as simple as putting a “property-set” widget into an event and setting the “autoSizeAllColumns” property to true. I can’t seem to get the right syntax.
Does anyone know what the syntax for this would be?
I believe it’s a method that needs to be called vs. a property that does a one time adjustment, I saw it a while back when I was tinkering but cant remember now.
If you do ctrl-alt-L and walk through the component properties, if i remember it is under ComponentInstance somewhere.
Thanks for the quick reply. Ctrl+ALT+L doesn’t pull anything up in the debugging tool. Is that default? If so should I be doing that in the preview of the layer or in application studio?
I tried that. Ctrl-alt-l doesn’t do anything for me. Even after logging out of Epicor, closing my browser, signing back in, and relaunching the layer, it didn’t change anything. Are there any other settings I need to enable on an account or instance basis to get this to work?
How would I go about calling this method / action ID? I thought I would place it in a next event widget but when I went to put it in there it does exist.
Well, I only really know that an action lives on the 3 dot menu and you can also make it a clickable button. I’ve only done it where an action is already set up to call an event, and i trigger the event manually instead of via the action.
In this case, the action triggers some javascript code in main.js, so we lose that ability and need to trigger the action.
Maybe some javascript could trigger the action if we cant do it out of box in App Studio…