<collection: replace>
        <table-plus:games fields="this, maximum_memberships">
                <header: replace/>
               <controls:>
                   <delete-button image="icons/remove.png"
update="self"/>
               </controls:>
              <empty-message:>
                   No members match your criteria
              </empty-message:>
          </<table-plus:>
</collection:>

This is similar to what I've coded. I made a tag definition in
application.dryml to "don't repeat myself", but for the sake of
simplicity here is the table-plus tag.

The <header: replace/> disables the search box. You can remove it
because may not fit your case.

The <controls> mentions that the delete button must have an image. If
you replace that entire tag by <controls/>, you will get an edit link
and a delete button.

Hope it helps.

TF


On Sep 22, 3:08 am, Edmund <[EMAIL PROTECTED]> wrote:
> Tiago,
>
> Which is the correct way to do it?  Can you please provide the syntax?
>
> Thanks,
> Edmund Vergel de Dios
>
> On Sep 21, 5:03 pm, GamaFranco <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Thanks. This is the correct way to do it. The way I've told earlier
> > messes the sorting header of the rows.
>
> > Regards,
> >   Tiago Franco
>
> > On Sep 21, 12:29 am, kevinpfromnm <[EMAIL PROTECTED]> wrote:
>
> > > You could've also used the controls param which includes a delete
> > > button (as well as an edit link) by default but doesn't show unless
> > > it's defined.
>
> > > On Sep 20, 4:35 pm, GamaFranco <[EMAIL PROTECTED]> wrote:
>
> > > > This was solved with:
>
> > > > <table-plus:memberships fields="user, score" part="members">
> > > >         <header: replace/>
> > > >         <field-heading-row:>
> > > >             <param-content/>
> > > >             <th>
> > > >             </th>
> > > >         </field-heading-row:>
> > > >         <tr:>
> > > >             <param-content/>
> > > >             <td>
> > > >                 <delete-button update="self"/>
> > > >             </td>
> > > >         </tr:>
> > > >         <empty-message:>
> > > >             No members match your criteria
> > > >         </empty-message:>
> > > >         </table-plus>
>
> > > > Thanks Solars.
>
> > > > TF
>
> > > > On Sep 19, 12:20 am, GamaFranco <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi,
>
> > > > > I have a table-plus that lists the project memberships, from the
> > > > > agility tutorial.
>
> > > > > Is there a way to add a column with a destroy icon that removes the
> > > > > corresponding membership, when clicked?
>
> > > > > Thanks,
> > > > >   Tiago Franco
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to