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

    QPopupEdit inside QTable programmatic canceling doesn't work

    Framework
    2
    2
    172
    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.
    • V
      vsg24 last edited by

      I needed to have custom buttons inside q-popup-edit and I’m trying to cancel the pop up on button press but it just doesn’t work. It does absolutely nothing.
      What am I missing?

      <q-popup-edit v-model="props.row.title" ref="popupEdit">
        <q-input v-model="props.row.title" dense autofocus counter />
           <div class="q-gutter-sm">
              <q-btn outline color="primary" label="Submit" />
      	<q-btn outline color="red" label="Delete" />
      	<q-btn flat color="primary" label="Cancel" @click="cancel"/>
           </div>
      </q-popup-edit>
      

      Here is my cancel method:

      this.$refs.popupEdit.cancel()

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

        Not sure why the ref isn’t working, but the formal way to do your own buttons is to use the default scoped slot and it’s props, which offer you the set and cancel methods.

        https://quasar.dev/vue-components/popup-edit#Default-scoped-slot

        Scott

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