Hi Paula,
I was referring to this part of the code
<div ex:role="view"
ex:viewClass="Tabular"
ex:label="Details"
ex:columns=".term, .label, .party, .presidency.inDate,
.presidency.outDate, add(foreach(.presidency, date-range(.inDate,
.outDate, 'day')))"
ex:columnLabels="term, name, party, took office, left office,
days in office"
ex:formats="date { mode: medium; show: date }"
ex:sortColumn="4"
ex:sortAscending="false"
>
<table style="display: none;">
<tr ex:background-style-content="if(exists(.death), '#ccc',
'white')">
<td><span ex:content=".term"></span></td>
<td><b ex:content=".label"></b><br/><img
ex:src-content=".imageURL" /></td>
<td><span ex:content=".party"></span></td>
<td><span ex:content=".presidency.inDate"></span></td>
<td><span ex:content=".presidency.outDate"></span></td>
<td><span ex:content="add(foreach(.presidency,
date-range(.inDate, .outDate, 'day')))"></span></td>
</tr>
</table>
</div>
See how there is a <table> inside the <div>? The <tr> of the <table>
serves as a template for how to render each row. You can do fancy things
with row templates. For example, in the second cell, I display the label
followed by the photo of the president.
David
paula bonastre wrote:
> Hi,
>
> I was checking the US President example but I don´t see what you
> refert to, can you explain me a bit
> more what you mean whith row template inside the tabular view.
>
> Thanks for all,
> Paula
>
>
> 2008/8/20 David Huynh <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>
>
> pbonastre wrote:
> > Hello everyone,
> >
> > I have a problem but I couldn´t find and answer, soo I ask all
> off you
> > if you have any idea.
> >
> > I have a TabularView, with 3 different info to show, name, Rol,and
> > judgement.
> >
> > <td ex:role='viewPanel'>
> > <div ex:role='exhibit-view'
> > ex:viewClass='Exhibit.TabularView'
> >
> > ex:columns='.persona.nombre, .rol,
> .sentencia_Relacion.numero_sentencia'
> > ex:columnLabels='NOMBRE,ROL, SENTENCIA'
> > ex:columnFormats='list,list, list'
> > ex:sortColumn='0'
> > ex:sortAscending='false' class='tabular'
> > >
> >
> > The thing is thant I want every line and every different info,like
> > name, Rol and judgement has to have a different URL,
> > so when you press in any off then you will be redirect to a
> different
> > page.
> >
> > Thanks to all.
> >
> Paula,
>
> Try to use a row template inside the tabular view.
>
>
>
> http://groups.google.com/group/simile-widgets/browse_thread/thread/86eac4d8f55ec647/ab0f30ac53d4492c
>
> David
>
>
>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" 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/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---