Evaluate if a Section layout is collapsed or expanded

Certified Senior Developer

Hi,

I would need to evaluate if a Section layout is currently collapsed or expanded by the user.

Is there any function to know this value? (or maybe using a child data to watch if it is visible?)

(collapsible and InitiallyCollasible are for others needs)

Regards 

  Discussion posts and replies are publicly visible

Parents
  • Section layout collapsibility occurs on the browser and does not send any information back to the server. To achieve what you want, I recommend using a!richTextDisplayField to show a section label with a side arrow. Use a dynamic link on the arrow to change the icon and call other saves. You can use a local variable to store whether a section is collapsed or expanded.

  • 0
    Certified Lead Developer
    in reply to Danny Verb

    My feature request would be to parameterize this within a!sectionLayout() - i.e. a parameter akin to "isCurrentlyCollapsed" (optional) which can be associated with a local variable to either control things externally elsewhere on the form, and (preferably if possible) also allow the collapsed state to be controlled from externally as well. 

    I vaguely understand what you mean that it's handled by the browser, but is it completely unfeasible that the component could be expanded such that there's an event thrown when the collapse expando is clicked/etc?  I've had many situations in the past where this would be desired behavior and of course our hands are bound, unless by use of a homebrew "fake" section layout component, which works but is clunky and seems like it *should* be unnecessary.

  • 0
    Certified Lead Developer
    in reply to Mike Schmitt

    I would love to see this new feature to load data in a section only if it is expanded. At the moment I have to do what Danny suggested

Reply Children
No Data