import { DaffQuantityInputComponent } from '@daffodil/design'
@Component()
class DaffQuantityInputComponent implements OnInit, OnDestroy {
@ViewChild() input: DaffInputComponent
_inputControl: UntypedFormControl = new UntypedFormControl()
get focused(): boolean
_destroyed: Subject = new Subject()
value
get disabled(): boolean
ngControl: NgControl
@Input() min: number = 1
@Input() max: number = 10
ngOnInit(): void
ngOnDestroy(): void
focus(): void
onFocus(): void
onBlur(): void
onValueChange(e: any): void
}
DaffInputComponent
Default | – |
---|---|
Description |
UntypedFormControl
Default | new UntypedFormControl() |
---|---|
Description | A new control for the nested native input. We don't bind the native input directly to the inherited form control to avoid triggering updates on the input event. Instead, we listen for the change event and manually patch form control values. |
boolean
Default | – |
---|---|
Description |
Subject
Default | new Subject() |
---|---|
Description |
Default | – |
---|---|
Description |
boolean
Default | – |
---|---|
Description |
NgControl
Default | – |
---|---|
Description |
void
void
void
void
void
void
Callback function fired when the value changes. Used to pass the value back up to the ngControl.
Parameter | e: any |
---|---|
Description |
number
Default | 1 |
---|---|
Description |
number
Default | 10 |
---|---|
Description |