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

    Custom bottom of QTable without removing pagination data

    Help
    3
    4
    1862
    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.
    • Luca
      Luca last edited by Luca

      Hi all!

      I’m rather new to Quasar and Vue and it’s the first time I use slots.

      I would like to put a couple of links or buttons in the left side of the bottom (footer) of a QTable to let the user download data in CSV (and maybe PDF) format via calls to the app backend. I’d like to use that space because it is free and there is home for a couple of buttons:

      Where I want to put buttons...

      However, if I use the bottom slot:

                    <q-table
                      class="tab-elenco q-mt-md full-width"
                      :data="lista"
                      :columns="columns"
                      row-key="id"
                      :pagination="pagination"
                      no-data-label="Nessun elemento in archivio"
                      loading-label="Caricamento in corso..."
                      :loading="loading"
                      :filter="search"
                      @row-click="modifica"
                    >
                      <template v-slot:bottom>
                        <q-btn
                          color="primary"
                          label="Esporta in CSV"
                          no-caps
                          flat
                          @click="exportTable"
                        />
                      </template>
                    </q-table>
      

      all the pagination data goes away:

      Pagination info disappeared

      Is it possible to keep the pagination info while customizing the left side of the QTable bottom?

      Thank you so much 🙂
      Luca

      1 Reply Last reply Reply Quote 1
      • D
        dorsolic last edited by

        Hi Luca,

        I’m also trying to customize QTable bottom as you described it.
        Have you succeeded, or you used another solution?

        Thanks,
        Duro

        dobbel 1 Reply Last reply Reply Quote 0
        • dobbel
          dobbel @dorsolic last edited by

          @dorsolic

          You could use the bottom slot with your own pagination( copied from the pagination slot example), something like this:

          https://codepen.io/ontwikkelfabriek/pen/GRjYvxa

          D 1 Reply Last reply Reply Quote 1
          • D
            dorsolic @dobbel last edited by

            @dobbel many thanks!

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