@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
20 lines • 1.16 kB
JavaScript
import { StringProperties } from "../String/StringDocs.js";
export const BankAccountNumberProperties = {
...StringProperties,
bankAccountType: {
doc: 'The type of bank account number, used for input mask, label, and formatting. Can be `norwegianBban`, `swedishBban`, `swedishBankgiro`, `swedishPlusgiro`, or `iban`. Validation is currently only supported for `norwegianBban`. Defaults to `norwegianBban`.',
type: 'string',
status: 'optional'
},
validate: {
doc: 'Using this prop you can disable the default validation.',
type: 'boolean',
status: 'optional'
},
onBlurValidator: {
doc: 'Custom validator function that is triggered when the user leaves a field (e.g., blurring a text input or closing a dropdown). The function can be either asynchronous or synchronous. The first parameter is the value, and the second parameter returns an object containing { errorMessages, connectWithPath, validators }. Defaults to bank account number validation, using `bankAccountNumberValidator`. Can be disabled using `false`.',
type: 'function',
status: 'optional'
}
};
//# sourceMappingURL=BankAccountNumberDocs.js.map