DaffQuantityInputComponent
import { DaffQuantityInputComponent } from '@daffodil/design'
@Component()
class DaffQuantityInputComponent implements OnInit, OnDestroy {
@ViewChild() input: DaffInputComponent
@Input() min: 1
@Input() max: 10
_inputControl: UntypedFormControl
get focused(): boolean
_destroyed: Subject
get value()
set value(value)
get disabled()
ngControl: NgControl
ngOnInit()
ngOnDestroy()
focus()
onFocus()
onBlur()
onValueChange(e: any)
}
Selector:
'daff-quantity-input'
Properties
Name | Type | Description |
---|---|---|
input | DaffInputComponent | |
@Input() min | 1 | |
@Input() max | 10 | |
_inputControl | UntypedFormControl | 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. |
focused | boolean | |
_destroyed | Subject | |
value | ||
disabled | ||
ngControl | NgControl | |
ngOnInit | ||
ngOnDestroy | ||
focus | ||
onFocus | ||
onBlur | ||
onValueChange | Callback function fired when the value changes. Used to pass the value back up to the ngControl. |