Wish: New widget

Wish: New widget

  
Rather than having to create an expression to handle:ordered <.ol.>, unordered <.ul.> and list item <.li.> tags .

It be good if there was a widget that can be placed onto the web screen, and configured via the property panel -- this would make things alot easier and more presentable.
Hi Robert,

Have you considered using a List Records widget for this matter?
(http://www.outsystems.com/help/servicestudio/4.2/default.htm#web_user_interface/web_list_records_widget_properties.htm)
Cheers,
André Vieira
Thanks André

However UL/LI tags are used for specialised purpose, will use expression widgets for now.

André,

A listrecord creates a table instead of UL/IL combination

Joop


+1 vote! It would be a nice addition.


Actually, a ListRecords widget IS your 'custom list widget', and a very resourceful tool to use on your webpages. Whenever you need to create those type of custom widgets (based on lists), you should use a ListRecords with the desired properties, and  Unescaped Content Expressions inside. You can even place these kind of 'custom list' ListRecords inside webblocks and reuse them.



Hi Joop,

When you configure the list record widget (not the table records widget) to use bullets as the line separator you get an UL/LI combination.

Cheers,
André
What do you do if you want to insert the following html code?

<li id="developer" class="sub"><a href="#nogo">Developers Resource</a>
<ul>
<li><a href="#nogo">Item1</a></li>
         <li><a href="#nogo">Item2</a></li>
                <li><a href="#nogo">Item3</a></li>
</ul>
</li>
 

Hi Robert,

What you have there is a nested list. In order to do this you'll need to have two ListRecords widgets.
In your webscreen you put a ListRecord widget that will give you the outmost list. Inside the ListRecord you put the link and a webblock. the webblock will have the second ListRecord. This is the way to nest ListRecords.

I've attached an untested example. Hope it helps you.

Cheers,
André
There is still a small glich in the listrecord.
When it renders to HTML it creates a SPAN tag around it.
I want to use it in conjunction with jQTouch and the SPAN will mess up the functionallity.

Still would be nice to have an unsorted list widget without any SPAN's

I've seen some other topics talking about the same issue, most of the time OutSystems advice is to create an expression ...
http://www.outsystems.com/NetworkForums/ViewTopic.aspx?Topic=Recursive-List-Records-Web-block
http://www.outsystems.com/NetworkForums/ViewTopic.aspx?Topic=%3Cul%3E-and-%3Cli%3E-html-tags-(menu)
http://www.outsystems.com/NetworkForums/ViewTopic.aspx?Topic=Using-a-List-to-make-a-menu