[Cuis-dev] validating text input
Mariano Montone
marianomontone at gmail.com
Thu Apr 3 14:05:27 PDT 2025
El 3/4/25 a las 14:49, Mark Volkmann via Cuis-dev escribió:
> I'm looking for a way to validate input into a TextModelMorph. For
> example, maybe I only want to allow certain characters to be typed or
> I want to limit the number of characters that can be entered. I've
> looked through all the methods in TextModelMorph and InnerTextMorph,
> but don't see an obvious way to do this without creating new
> subclasses of one or both of those. Am I overlooking something?
I think you will have to subclass. TextModelMorph won't satisfy every
use-case.
Mariano
More information about the Cuis-dev
mailing list