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

    Dialog buttons spacing and button disabling

    Help
    2
    8
    2939
    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.
    • S
      Sfinx last edited by

      Hello,

      Assuming dialog having two css buttons with classes: 'positive’ - the buttons are too close to each other and stick together. Is it possible to make some space there ? I’ve tried to create the dummy button with label:’ ' but I can’t disable it. Is there some way of disabling buttons in dialogs ?

      TIA, Rus

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

        Can you be so kind to open a Github request ticket for “Dialog buttons spacing” pls?
        Disabling a button makes too little sense… just don’t add it. And from what I understand you are only adding it to hack button spacing.

        1 Reply Last reply Reply Quote 0
        • S
          Sfinx last edited by

          Well, disabling/enabling buttons reactively is widely used in UI for usability - for example consider accepting license dialog. Until user check the ‘I’ve read and agreed to the license terms’ checkbox the Accept button must be disabled.

          Done: https://github.com/quasarframework/quasar/issues/468

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

            @Sfinx thx. yes, but you also have http://quasar-framework.org/components/dialog.html#Buttons-Preventing-Dialog-Close

            1 Reply Last reply Reply Quote 0
            • S
              Sfinx last edited by

              The prevent close behaviour is not related to usability here 😉 While the users see the enabled Agree button - most of them will still try to press it.

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

                Would you be so kind to open up a github ticket for the disabling buttons?
                This is not so easy as Dialogs use a new instance of Vue (not the app root one – as it’s not injected in your page template [so not precompiled by your app but precompiled when building Quasar distributable itself]). There’s a lot to talk on the subject for a full explanation. Will see what I can do. Thanks!

                1 Reply Last reply Reply Quote 0
                • S
                  Sfinx last edited by

                  Thanks, I will open the issue. The simple way is like:

                  …
                  let dlg = new Dialog(… buttons[id:‘agree’, disabled: tue …])
                  …
                  dlg.buttons.id(‘agree’).enable()
                  …

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

                    Agreed on that.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post