isValidText method
This predicate checks any TextBlock#textValidation predicate and this tool's #textValidation predicate to make sure the TextBlock#text property may be set to the new string.
This method may be overridden, although usually it is sufficient to set #textValidation. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {TextBlock} textblock the TextBlock that is being edited. @param {string} oldstr the previous string value. @param {string} newstr the proposed new string value. @return {boolean} true if the new string is valid for the given TextBlock.
Implementation
_i2.bool isValidText(
_i3.TextBlock textblock,
_i2.String oldstr,
_i2.String newstr,
) =>
_i4.callMethod(
this,
'isValidText',
[
textblock,
oldstr,
newstr,
],
);