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

83
Vistas
Disabling of an HTML svg tag

When I use the following [attr.disabled] with a button it works fine.

isDisabled = true;
<button [attr.disabled] = "isDisabled ? 'disabled' : null"> Click </button>

What to do If I want to do the same with svg tag? The same way does not work.

<svg>
 <use [attr.xlink:href]="show ? '#arrow-top' : '#arrow-bottom'"></use>
</svg>

I need to disable the #arrow.

Also is there a way to combine cursor:not-allowed and pointer-events:none without css ? Tried this and doesnot work.

<svg [style.cursor] = "show ? 'auto' : 'not-allowed'" 
[style.pointerEvents]="show ? 'auto' : 'none'"> .....</svg>
about 4 years ago · Juan Pablo Isaza
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