No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to disable animation on collapsible component.

    Framework
    2
    4
    968
    Loading More Posts
    • 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.
    • L
      leonardodelfino last edited by

      Hi, I would like to know how to disable animation in the collapisible component. I’m using version 0.13 of the framework.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • C
        cklinx last edited by

        Should be:

        <q-collapsible disable icon="shopping_cart" label="Third">
            <div>
              Content
            </div>
          </q-collapsible>
        

        “disable” is the solution, but i am not sure that it works on your quasar version.

        1 Reply Last reply Reply Quote 0
        • L
          leonardodelfino last edited by leonardodelfino

          But use disable, will disable the entire component or just the animations? I want the expand/close effect to continue working, but remove only the animation that is giving lag on some devices that I tested,

          1 Reply Last reply Reply Quote 0
          • C
            cklinx last edited by

            Lag is created by animation. With disable you disable just the collapsible animation and you see the Object opened.
            here the code:

            <q-collapsible disable opened icon="shopping_cart" label="Third">
                <div>
                  Content
                </div>
              </q-collapsible>
            

            if you want keep the animation you can try “icon-toggle” option. The performance wille be better but, for me, not enough. In fact i disable whole animation in my applications.

            <q-collapsible opened icon-toggle icon="shopping_cart" label="Third">
                <div>
                  Content
                </div>
              </q-collapsible>
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post