html select enable: false

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

html select enable: false

Jeff Gray
Is there a bug in enabling controls?
Specifically the 'select' brush?

I get an error if I use enable: but disable: with a 'not'ed condition works just fine.
Reply | Threaded
Open this post in threaded view
|

Re: html select enable: false

Philippe Marschall
2010/11/4 Jeff Gray <[hidden email]>:
>
> Is there a bug in enabling controls?
> Specifically the 'select' brush?
>
> I get an error if I use enable: but disable: with a 'not'ed condition works
> just fine.

Not a bug, just an unfortunate naming of a method:

WASelectTag >> #enabled: aOneArgumentBlock
        "Enable only those elements for selection for whom aBlock return true."

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: html select enable: false

Jeff Gray
Oh ok, so how would you use the enable: method, and what for?
Reply | Threaded
Open this post in threaded view
|

Re: html select enable: false

Johan Brichau-2
Jeff,

There is no #enable: method on any tagbrush in my image (seaside3.0).

On 04 Nov 2010, at 07:46, Jeff Gray wrote:

>
> Oh ok, so how would you use the enable: method, and what for?
>
> --
> View this message in context: http://forum.world.st/html-select-enable-false-tp3026458p3026584.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: html select enable: false

Philippe Marschall
In reply to this post by Jeff Gray
2010/11/4 Jeff Gray <[hidden email]>:
>
> Oh ok, so how would you use the enable: method, and what for?

html select
  list: (1 to: 10);
  enabled: [ :v | v even ]

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: html select enable: false

Jeff Gray
Ahh thanks Philippe. So it allows you to see items in your list but you just can't select them. Cool.