Can't change QTable Column width



  • 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”
    },
    ]
    

Log in to reply