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

    [Solved] [V1] Q-Date - How to hide Q-Date component inside the table

    Framework
    2
    7
    650
    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
      Stanley last edited by Stanley

      Please see the demo. https://codepen.io/Stanley-549393092/pen/WqaXBx
      As you can see, when popup the date component on the first row, after choose any date, the dialog will not close.
      So I guess it has to assign the ref (qDateProxy) dynamically. For example as below. But there is some syntax error, could you please give some suggestion how to implment it, thanks!

      <q-popup-proxy :ref="'qDateProxy' + props.row.__index">
          <q-date
              v-model="props.row.docDate"
              mask="YYYY-MM-DD"
              today-btn
              @input="() => $refs.['qDateProxy' + props.row.__index].hide()">
          </q-date>
      </q-popup-proxy>
      
      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @Stanley last edited by

        @Stanley https://codepen.io/Stanley-549393092/pen/WqaXBx here.

        S 1 Reply Last reply Reply Quote 0
        • S
          Stanley @metalsadman last edited by

          @metalsadman I can’t find any change. Could you please check it?

          metalsadman 1 Reply Last reply Reply Quote 0
          • metalsadman
            metalsadman @Stanley last edited by

            @Stanley https://codepen.io/metalsadman/pen/GbYxdL

            S 1 Reply Last reply Reply Quote 0
            • S
              Stanley @metalsadman last edited by

              @metalsadman It’s cool. Before closing it, could you please tell me where can I get some documentation about such syntax “`qDateProxy${props.row.item}`”?

              1 Reply Last reply Reply Quote 0
              • metalsadman
                metalsadman last edited by metalsadman

                @Stanley it’s https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals. the result is the same with what you were doing above.

                S 1 Reply Last reply Reply Quote 0
                • S
                  Stanley @metalsadman last edited by

                  @metalsadman Thanks a lot for your always support!

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