list with multiple elements in each "li"

45 views
Skip to first unread message

Jose Martins

unread,
Sep 19, 2011, 4:46:59 AM9/19/11
to telluri...@googlegroups.com
hi all,

i'm trying to map some elements into tellurium ui structure. The html is the following

<ul>
  <li>
     <img blabla>
     <div>
         <a blabla></a>
         <span blabla> blabla </span>
     </div>
  </li>

  <li>
     <img blabla>
     <div>
         <a blabla></a>
         <span blabla> blabla </span>
     </div>
  </li>

  <li>
     <img blabla>
     <div>
         <a blabla></a>
         <span blabla> blabla </span>
     </div>
  </li>
</ul>


what i am currently doing is:

List(blabla, separator:'li'){
    Image(uid:'image')

    Container(){
          UrlLink(uid: 'link')
          Span(uid: 'text')
    }
}


But i noticed that everytime you use lists in your tutorial, you have only one element in each 'li', so you just use the uid:'{all}'.
What should i do? (Apart from defining each element of the list separately)

Thanks in advance,

José Martins

Jose Martins

unread,
Sep 19, 2011, 6:44:25 AM9/19/11
to telluri...@googlegroups.com
Nevermind, i've found a way to get this done just by omitting the "separator" attribute. Like this:

List(blabla){

    Container(uid:'{all}, clocator:[tag:'li']){
Reply all
Reply to author
Forward
0 new messages