@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
21 lines (20 loc) • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NationalIdentityNumberProperties = void 0;
var _StringDocs = require("../String/StringDocs.js");
const NationalIdentityNumberProperties = exports.NationalIdentityNumberProperties = {
..._StringDocs.StringProperties,
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 validation of the identification number(national identity numbers and D numbers), using `dnrAndFnrValidator`. Can be disabled using `false`.',
type: 'function',
status: 'optional'
}
};
//# sourceMappingURL=NationalIdentityNumberDocs.js.map