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

187
Views
Cómo mostrar información sobre herramientas en knockoutjs cuando el botón está deshabilitado

Usé CSS para deshabilitar el botón y también quiero mostrar una información sobre herramientas. Sin embargo, solo porque deshabilité el botón, no puedo ver mi información sobre herramientas.

 .disabled { display: block !important; pointer-events: none; color: #ccc; }

 <button class="actionButton button primaryBt largeSize" data-bind="click:$root.openStaticVisualizer.bind($root, selectedRoom()), css: { disabled: !displayStaticVisualizer()}, attr:{ title :!displayStaticVisualizer()? ApprovalText: 'test' }"> <svg class="ico visualizationIcon"><use xlink:href="Content/icons/icons.svg#visualizationIcon" /></svg> <span>Visualize Room</span> </button>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Su clase .disabled deshabilita todos pointer-events . Esto rompe todos los comportamientos predeterminados del navegador que se basan en un puntero, como mostrar un título al pasar el mouse.

En su lugar, utilice el atributo disabled . Esto no impide que se muestre el título, pero desactiva hacer clic en el botón.

Puede aplicar el atributo disabled directamente a través de los enlaces disabled y enable de knockout.

Puede aplicar un estilo personalizado creando una regla css para la pseudoclase :disabled .

 <button disabled title="This information appears when hovering" >Hover me for more information</button>

about 4 years ago · Juan Pablo Isaza 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!