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

    Can't change QTable Column width

    Help
    1
    1
    84
    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.
    • F
      fenchai last edited by

      This is what I have that is working ok-ish:
      width: 'Npx' does nothing

      <template v-slot:body-cell-description="props">
              <q-td :props="props" :style="{ width: '50px', whiteSpace: 'normal' }">
                <div class="tableCell">
                  {{ props.value }}
                </div>
              </q-td>
            </template>
      

      What I have tried:
      this method from googling

      cols: [
      {
      name: “status”,
      align: “left”,
      filter: true,
      sortable: true,
      style: ‘width: 40px’,
      type: “string”
      },
      ]
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post