input/src/billing-number/billing-number.directive.ts
The directive is applied to an InputComponent (<input talenra-input talenra-billing-number />) to support users
entering billing numbers (German: "Abrechnungsnummer", e.g. AB.123.456).
You might want to limit the input value to 17 characters (the maximum length of billing numbers including separators).
Example :<talenra-form-field label="Abrechnungsnummer">
<input talenra-input talenra-billing-number formControlName="billingNumber" type="text" maxlength="17" />
</talenra-form-field>You might want to use InputValidator.billingNumber to validate the input.
form: FormGroup = new FormGroup({
billingNumber: new FormControl('', [InputValidators.billingNumber]),
});Example for a valid input: A1.234.567
import { BillingNumberDirective } from '@talenra/components/input';See InputValidators.billingNumber
| Providers |
BillingNumberPipe
|
| Selector | input[talenra-input][talenra-billing-number], input[talenra-search][talenra-billing-number] |