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

75
Views
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
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!