Closed GogoVega closed 2 weeks ago
I like the idea I will modify it 😉
What about normalisePropertyExpression
translations? For 4.1?
I cannot remember if the english messages in that function end up surfacing to the end user. There are lots of messages... wary of making a huge translation burden. I'd keep it on the todo list personally, don't feel strongly either way.
Proposed changes
TL;DR; This PR adds support for a validation message to all inputs. This allows node validation to be more precise in case of an error.
This PR adds the following features/changes:
getContent
method toRED.popover.tooltip
validateNodeProperty
function will check for an error message in the tooltipvalidate
method of thetypedInput
handles theinput-error
class by itself + addition of a tooltiptypedInput
validators now support an error messageThis PR is linked to #4450 and was discussed in the Forum.
TODO:
normalisePropertyExpression
errors are not yet translated - Quid?Checklist
npm run test
to verify the unit tests pass