UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

22 lines (21 loc) 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NameProperties = exports.NameEvents = void 0; var _StringDocs = require("../String/StringDocs.js"); const NameProperties = exports.NameProperties = { ..._StringDocs.StringProperties, minLength: { ..._StringDocs.StringProperties.minLength, doc: 'Validation for minimum length of the text (number of characters). Defaults to `1`.' } }; const NameEvents = exports.NameEvents = { onBlurValidator: { doc: 'Custom validator function that is triggered when the user leaves a field (e.g., blurring a text input). 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 name validation, using `nameValidator`. For `Field.Name.Company` it uses `companyValidator`. Can be disabled using `false`.', type: 'function', status: 'optional' } }; //# sourceMappingURL=NameDocs.js.map