Disabled round checkbox cursor
This commit is contained in:
parent
9f2cdbe490
commit
bd0adfcd6d
@ -1,4 +1,4 @@
|
||||
:host {
|
||||
:host:not(.disabled) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user