Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

551
Views
how fixed column width of vuetify data table

I have a vuetify data table, I've set width for every column and I want to fixed column's width of my table but it has grown up because of their content and it doesn't matter what is the width of them. how can fixed column's width?

  <template>
    <v-data-table
        v-if="physicianAccountsLocalData"
        :headers="headers"
        :items="physicianAccountsLocalData"
        hide-default-footer
        class="data-table"
        :items-per-page="-1"
      >
        <template #[`item.isActive`]="props">
          <BaseSwitch
            v-model="props.item.isActive"
            class="switch-siam-table"
            @change="changeModel($event, props)"
          />
        </template>
        <template #[`item.location`]="props">
          <span
            class="location"
            :class="{'text-disable-state': !props.item.isActive}"
          >
            {{ props.item.location }}
          </span>
        </template>
        <template #[`item.name`]="props">
          <span
            class="name"
            :class="{'text-disable-state': !props.item.isActive}"
          >
            {{ props.item.name }}
          </span>
        </template>
      </v-data-table>
  </template>

  <script>
     data() {
    return {
         headers: [
          { text: 'فعال', value: 'isActive', sortable: false, width: '110px', align: 'right' },
          { text: 'نوع', value: 'location', sortable: false, width: '13%', align: 'start' },
          { text: 'نام', value: 'name', sortable: false, width: '200px' }
          ],
         }
      }
  </script>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!