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

    Disable dialog open/close animation ?

    Help
    4
    7
    3638
    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.
    • A
      april last edited by

      Hi,
      Is there a way to remove the animation when a dialog is opened by calling the Dialog.create() function and when it closes as well?
      -april

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Use the name prop and set it to something bogus.

        A 1 Reply Last reply Reply Quote 0
        • A
          april @rstoenescu last edited by

          @rstoenescu
          I’m not sure if I’m missing something. There’s no “name” prop on the Dialog component. How can I set it?

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            I think Razvan means the “name” prop for the transition itself, which is a child component of modal, which is used in the dialog component.

            Scott

            1 Reply Last reply Reply Quote 0
            • A
              april last edited by april

              That’s not confusing at all, is that? :)) I’m still new to Vue and not sure how to do that, but I will try to work it out myself.

              My current hack is overriding the following css in the parent component of the dialog so the animation is less.

               .modal, .modal-content {
                      transition: all 0.02s linear;
                }
              

              Would be nice to be able to customise all animation in the framework.

              Thank you for your response!

              A 1 Reply Last reply Reply Quote 0
              • A
                april @april last edited by

                I think a better place to put my overriding css is in the themes/app.mat.styl or themes/app.ios.styl
                E.g.

                // This file is included in the build if src/main.js imports it.
                // Otherwise the default Material CSS file is bundled.
                // Check "DEFAULT / CUSTOM STYLE" in src/main.js
                
                // App Shared Variables
                // --------------------------------------------------
                // Shared Stylus variables go in the app.variables.styl file
                @import 'app.variables'
                
                // App Material Design Variables
                // --------------------------------------------------
                // Material Design only Stylus variables can go here
                // http://quasar-framework.org/api/css-stylus-variables.html
                
                $typography-font-family     ?= 'Roboto'
                
                $toolbar-color              ?= white
                $toolbar-background         ?= $primary
                $toolbar-active-color       ?= $primary
                $toolbar-faded-color        ?= composite-color($primary)
                
                // Quasar Material Design Stylus
                // --------------------------------------------------
                // Custom App variables must be declared before importing Quasar.
                // Quasar will use its default values when a custom variable isn't provided.
                @import '~quasar-framework/dist/quasar.mat.styl'
                
                // MY OVERRIDING CSS
                // --------------------------------------------------
                .modal, .modal-content
                  transition none
                
                1 Reply Last reply Reply Quote 0
                • C
                  cityboy last edited by

                  <q-dialog  transition-show="none" transition-hide="none" 
                  v-model="loadingDialog" persistent maximized></q-dialog>
                  
                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post