Button text in forms
chad at clearwaterassociates.ca
Tue Apr 11 16:25:40 MEST 2006
Sorry for not explaining that I am using Magritte alone, without Pier.
I will add #search as an extension method to MAContainerComponent.
Thanks for you help,
On 4/11/06, Lukas Renggli <renggli at iam.unibe.ch> wrote:
> > When I am rendering a model using "MYQueryModel new asComponent", I
> > want the text on the Magritte-generated form's 'Save' button to
> > read something else like 'Search'. How do I do this, if it is even
> > possible. I am trying to use descriptions for a query object and
> > want the same action as the default 'Save' (to answer the object) ,
> > but having a button with that label will confuse users.
> So I suppose that MYQueryModel is a subclass of PRCommand, right? If
> this is the case you should override #asComponent, else I don't quite
> understand your question.
> ^ super asComponent
> ^ (self description asComponentOn: self)
> addValidatedForm: #( search );
> Don't forget to add #search as an extension method to
> Lukas Renggli
> SmallWiki, Magritte, Pier and Related Tools ...
More information about the SmallWiki