Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Collapse row when opening other

Collapse row when opening other

Scheduled Pinned Locked Moved General Discussion
7 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    R
    Remco van Dun
    wrote on last edited by
    #1

    Great addition with the collapsible rows! Used custom code before but this is way more practical and doest restrict to the one row under the button.

    That being said, is it possible to have a opened row collapse when a new one opens?

    I've set up an example where I'd be able to use a summary of services with a collapsible row underneath.

    https://remcovandun.nl/info-2/

    When you click on Graphic Design the matched design services show.

    Clicking on a different service should close the previous while opening the new row? Maybe a 'only 1 open row at a time' checkbox in the lay options somewhere?

    best,
    Remco

    R 1 Reply Last reply
    0
    • R Remco van Dun

      Great addition with the collapsible rows! Used custom code before but this is way more practical and doest restrict to the one row under the button.

      That being said, is it possible to have a opened row collapse when a new one opens?

      I've set up an example where I'd be able to use a summary of services with a collapsible row underneath.

      https://remcovandun.nl/info-2/

      When you click on Graphic Design the matched design services show.

      Clicking on a different service should close the previous while opening the new row? Maybe a 'only 1 open row at a time' checkbox in the lay options somewhere?

      best,
      Remco

      R
      R
      Remco van Dun
      wrote on last edited by
      #2

      @Remco-van-Dun

      I've seen your new update 'collapse other rows'. This kind of fixes it, thanks!
      content moves a little weird from the bottom once you click through the options... Should it close first and open a new row another? Not sure if thats better.

      1 Reply Last reply
      0
      • arminunruhA
        arminunruhA
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        yea i added that feature and released the update a day ago

        1 Reply Last reply
        0
        • arminunruhA
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          yeah i think i need to add another option:
          scroll to opened row

          because the thing is when other rows close it changes the scroll position because it changes the document height

          1 Reply Last reply
          0
          • arminunruhA
            arminunruhA
            arminunruh
            Global Moderator
            wrote on last edited by
            #5

            oh actually i think one of your rows might have a different row space so it has a different space at the top or sth

            R 1 Reply Last reply
            0
            • arminunruhA arminunruh

              oh actually i think one of your rows might have a different row space so it has a different space at the top or sth

              R
              R
              Remco van Dun
              wrote on last edited by Remco van Dun
              #6

              @arminunruh

              https://remcovandun.nl/info/

              I've updated my Info page with the collapsed subcategories for each service. Thanks, I didn't even notice the top margin jump yet. I was looking at the way the content seem to move up from the bottom if you toggle between the services was odd.

              Actually... this would be solved if there was a checkbox 'close other row before opening new row'?

              And to make them appear from the same top margin I had to set all the gutters for the rows after the first to 0%. Maybe not how you intended but works for me :)

              1 Reply Last reply
              0
              • arminunruhA
                arminunruhA
                arminunruh
                Global Moderator
                wrote on last edited by
                #7

                Actually... this would be solved if there was a checkbox 'close other row before opening new row'?

                yea that feature exists now

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                Online Users
                Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                laytheme.com
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Recent
                • Tags
                • Popular
                • Users
                • Search