I posted AppStudio_InputValidator.qml on GitHub Gist which demonstrates an InputValidator on a TextField.