How can I execute a function when a disabled checkbox is clicked?

前端 未结 6 2427
轮回少年
轮回少年 2020-12-11 20:01

I have a checkbox on a page that is disabled until some criteria is met.

In an effort to give the user some information, I\'d like to have a \'tool tip\' display whe

6条回答
  •  再見小時候
    2020-12-11 20:33

    In Angular 4+

    .html ->
    
    
              
    
    
    .ts ->
    
    
    
     validate(){
            
              this._toastr.warning('your warning msg')
         
          }
    

提交回复
热议问题