Login  Register

Re: Spec: InputWidget question

Posted by Brad Selfridge on Sep 07, 2016; 9:07pm
URL: https://forum.world.st/Spec-InputWidget-question-tp4914439p4914673.html

Read the chapter. Being new to Spec, I'm still confused because I don't see clear evidence in the chapter that would fix the problems that are occurring in the InputWidget.

I did, however, read your documentation referring to the TextFieldInputModel example. After reading that, I created a TextPrompterWidget, (which is a direct copy of InputWidget). I changed the super class to DynamicComposableModel. I modified the "initializeWidgets" method, removed the "OK" method, and made a few other small modifications and got the widget to work as expected. I DID have to open the widget with "openDialogWithSpec" as that was the only way to auto-magically get the OK-Cancel toolbar widget. I'd share my code if you want.
Brad Selfridge