(node: FormKitNode)
| 523 | * @public |
| 524 | */ |
| 525 | export function createMessageName(node: FormKitNode): string { |
| 526 | if (typeof node.props.validationLabel === 'function') { |
| 527 | return node.props.validationLabel(node) |
| 528 | } |
| 529 | return ( |
| 530 | node.props.validationLabel || |
| 531 | node.props.label || |
| 532 | node.props.name || |
| 533 | String(node.name) |
| 534 | ) |
| 535 | } |
| 536 | |
| 537 | /** |
| 538 | * Describes hints, must also be changed in the debounceExtractor. |