Skip to main content

Notifications

Power Apps Pro Dev & ISV
Answered

Wraparound Feature and Collapsing

Posted on by 251
Good morning everyone!
 

Wraparound Feature for Questions – How to implement a wraparound feature so that everyone can view the entire question without any truncation.
 
Collapsing Left Column – How to add a feature to collapse the left column when a Add(+) button is clicked. (Also, then how to go back if someone want to find old record or go to old history.)
 
How can I fix this. Would appreciate insights/solutions.

  • Verified answer
    FLMike Profile Picture
    FLMike 28,123 on at
    Wraparound Feature and Collapsing
    Hi
     
    So what you do is something like this.
     
    In the Screen OnVisible (and you could use a context variable im being lazy)
     
    Set(_LeftContainerWidth, 200);
     
    This would be the start of the width of that container, assuming you know what it is, either hard code it or make is an Environment Variable or something else.
     
    Put it in the Width property of your Container on the left.
     
    Then when someone clicks +
    Set(_LeftContainerWidth, 0);
     
    Now its closed
     
    then in your other container change the X property to be
    If(_LeftContainerWidth = 0, 0, _LeftContainerWidth + 5) // so it will either have its X be 0 or X = Width of Left Container + 5 
     
    Then in the Width for your right container
     
    If(_LeftContainerWidth = 0, Parent.Width, ItsNormalWidth);
     
    Now for the controls IN the container do the same thing for X and Width
    If(_LeftContainerWidth = 0, Parent.Width, ItsNormalWidth);
    If(_LeftContainerWidth = 0, 0, _LeftContainerWidth + 5) // and change the 5 to whatever you want for that control
    in their widths.
     
    and Parent.Width, may need to be Template.Width or Screen depending on how you have it.
     
    Now since you said when they click + there must be a Save/Update button
    So, click that and then do
    Set(_LeftContainerWidth, 200) and bingo it all resets.
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Tuesday Tip #1 Subscribing to Forums…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 141,450

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,467

Leaderboard