enaml icon indicating copy to clipboard operation
enaml copied to clipboard

Field validator state should be accessible

Open jwiggins opened this issue 9 years ago • 2 comments

It would be nice if there was a flag in the Validator class that held the last value returned by the validate method. Then you could hook that up to, say, a PushButton.enabled attribute and get a text entry dialog that only allowed the 'OK' button to be pressed when the validator was happy with the provided text.

jwiggins avatar Oct 10 '14 17:10 jwiggins

I'd prefer to open a new discussion on fixing Field. It leaves a lot to be desired - a good validation model being part of that. What do you think?

sccolbert avatar Oct 10 '14 17:10 sccolbert

I don't disagree. I just ran into this particular issue, so I wanted to make a note.

jwiggins avatar Oct 10 '14 17:10 jwiggins