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

170
Views
How can disable first two column of header in vue

I am trying to disable draggable function for first 2 column i tried options in draggable

:options="{disabled : 'Subject'}" 

but it disable the all header draggable functionality

<thead class="not-as-small helpdesk-ticket-head">
   <draggable 
      v-model="headerColumn" 
      tag="tr"
      v-bind="dragOptions"
   >
     <th 
       v-for="(header, index) in selectedColumnsHeader" 
       :key="header.title"
       :class="{ 'table-data--sticky': stickyColumns(index) }"
       scope="col"
     >
       {{ header.title }}
     </th>
   </draggable>
</thead>
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Add method in draggable :move that check the header title if it match with subject it will return false and it will not be able to drag

<draggable 
  v-model="headerColumn" 
  v-bind="dragOptions"
  tag="tr"
  :move="checkHeader"
>

checkHeader(value) {
  if (value.draggableContext.element.title == 'Subject') {
     return false;
  }
  return true;
}
about 4 years ago · Santiago Trujillo Report
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!