Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

351
Vistas
Why does the v-bind shortcut : cannot be used for this property in this bootstrap-vue table?

I refer to this stackoverflow answer.

How to remove (Click to sort Ascending) text from header of every column in this bootstrap-vue table?

The correct answer is below;

<b-table
 ⋮
 label-sort-asc=""
 label-sort-desc=""
 label-sort-clear=""
></b-table>

I add the v-bind shortcut : to the properties as below;

<b-table
 ⋮
 :label-sort-asc=""
 :label-sort-desc=""
 :label-sort-clear=""
></b-table>

With the : in front, there is no effect. For other properties, adding : is fine. I am confused why some properties need : and some others like hover, striped don't. How to know when I can use :?

I am using vue v2.6 and bootstrap-vue

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The colon is a shorthand syntax of v-bind directive and it's used for dynamically binding attributes/props to expressions.

So in short, in case the item you're trying to bind will not change and it is not a prop you're trying to pass downwards, it is useless.
If it is intended to be dynamic, you need some logic to control it or else it will do nothing.
v-bind documentation

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda