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] Remove (or hide) select all check box Table component

    Framework
    2
    3
    1053
    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
      Alfredo last edited by Alfredo

      Hi all!

      I have a table in which I only want to allow the selection of 4 elements at most. I have assigned the selection property to multiple but a checkbox appears in the header that allows the selection of all rows. Is it possible to delete or hide it?

      Thanks!!

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

        You can declare your <q-table> in a “more explicit” way by specifying the slot templates and omitting the select component of header or just set the hide-header property in case it isn’t indispensable.

        <q-table
                title="Example"
                :data="data"
                :columns="columns"
                row-key="name"
                selection="multiple"
                :selected.sync="selected"
              >
          
                <template v-slot:header>
                   <!-- your custom header here -->
                </template>
          
        </q-table>
        
        1 Reply Last reply Reply Quote 1
        • A
          Alfredo last edited by

          Hi @CristalT!

          Thank you very much for your reply! . It works ok! 🙂

          I thought there would be a more direct solution, but really, creating a slot and using it is much easier than it seems. 🤪

          Regards

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