Spec Numeric Input

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Spec Numeric Input

Brad Selfridge
Is there a way to  enforce numeric text input field in Spec?
Brad Selfridge
Reply | Threaded
Open this post in threaded view
|

Re: Spec Numeric Input

jfabry
Hi Brad,

there is not default processor for that, but you can get notified when text is entered or accepted. Perform your own validation logic there and set the content of the field to whatever is appropriate.

--
Does this mail seem too brief? Sorry for that, I don’t mean to be rude! Please see http://emailcharter.org .

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of Chile

> On Aug 3, 2016, at 12:07, Brad Selfridge <[hidden email]> wrote:
>
> Is there a way to  enforce numeric text input field in Spec?
>
>
>
> -----
> Brad Selfridge
> --
> View this message in context: http://forum.world.st/Spec-Numeric-Input-tp4909464.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Spec Numeric Input

EstebanLM
Hi,

not directly but Denis made a very cool set of components that allow masks… and after all, you can display any morph as spec (with #asSpecAdapter)

http://smalltalkhub.com/#!/~dionisiy/Twisty

Esteban

> On 03 Aug 2016, at 19:51, Johan Fabry <[hidden email]> wrote:
>
> Hi Brad,
>
> there is not default processor for that, but you can get notified when text is entered or accepted. Perform your own validation logic there and set the content of the field to whatever is appropriate.
>
> --
> Does this mail seem too brief? Sorry for that, I don’t mean to be rude! Please see http://emailcharter.org .
>
> Johan Fabry   -   http://pleiad.cl/~jfabry
> PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of Chile
>
>> On Aug 3, 2016, at 12:07, Brad Selfridge <[hidden email]> wrote:
>>
>> Is there a way to  enforce numeric text input field in Spec?
>>
>>
>>
>> -----
>> Brad Selfridge
>> --
>> View this message in context: http://forum.world.st/Spec-Numeric-Input-tp4909464.html
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>
>>
>
>