Disabled round checkbox cursor

This commit is contained in:
Adina Țeudan 2022-03-28 19:51:23 +03:00
parent 9f2cdbe490
commit bd0adfcd6d
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
:host {
:host:not(.disabled) {
cursor: pointer;
}

View File

@ -1,4 +1,4 @@
import { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core';
import { ChangeDetectionStrategy, Component, ElementRef, HostBinding, Input, OnInit, ViewChild } from '@angular/core';
@Component({
selector: 'iqser-round-checkbox',
@ -11,6 +11,9 @@ export class RoundCheckboxComponent implements OnInit {
@Input() active = false;
@Input() indeterminate = false;
@Input() type: 'default' | 'with-bg' = 'default';
@HostBinding('class.disabled')
@Input()
disabled = false;
@ViewChild('wrapper', { static: true }) private readonly _wrapper!: ElementRef;