Le samedi 14 novembre 2009 à 11:36 +0100, Stefan Schmiedl a écrit : > On Sat, 14 Nov 2009 12:26:33 +0200 > Bèrto ëd Sèra <[email protected]> wrote: > > > Hi > > > > I'm looking at the example on the ToDoListEditor, which reads > > completedContents [ > > <category: 'building'> > > ^[:e | > > e td text: 'Completed'. > > (e td checkbox) > > action: [:val | self setItemCompleted: val]; > > checked: self item completed] > > ] > > > > My impression is that by doing this we have an interaction with the > > remote server per click, am I right? > > Extrapolating from the other message, I'd guess not. > > The action: block tells iliad what should happen once the form > has been submitted. > > Speculation is fun :-)
It's fun and you're right :) In fact, to send a request on a click on the checkbox, it would need #beSubmitOnClick. (If you take a look at TodoListGridWidget, you'll see that it is used to submit checkboxes on click). Cheers! Nico
signature.asc
Description: Ceci est une partie de message numériquement signée
_______________________________________________ help-smalltalk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-smalltalk
