Thread Rating:
  • 488 Vote(s) - 2.77 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Started5:Creating Lists
06-15-2011, 03:15 PM, (This post was last modified: 06-16-2011, 10:37 AM by kino.)
#1
Getting Started5:Creating Lists
It is common in textual content to have lists of subelements. Curl provides several text formats for that purpose. The Curl methods described are similar to HTML lists.

Bulleted Lists An unordered list is useful when you want to display items that are in no particular order, such as a list of products or Web sites.

•Create an unordered list using itemize
•Specify items contained within the list


Numbered Lists An ordered list is useful when you want to display content that are in a specific order, such as product installation steps.

•Create an ordered list using enumerate
•Specify items contained within the list
Code:
{curl 6.0, 7.0 applet}
{curl-file-attributes character-encoding = "utf8"}

{applet  {compiler-directives careful? = true}}

Vacation Destinations:
{itemize
   {item Japan}
   {item China}
   {item Malaysia}
   {item Australia}
}

Vacation Activities
{enumerate
   {item Skiing}
   {item Snorkeling}
   {item Kayaking}
   {item Biking}
}
We can also specify lists within lists. In these cases the item indentation depends on nesting level.

Code:
{curl 6.0, 7.0 applet}
{curl-file-attributes character-encoding = "utf8"}

{applet  {compiler-directives careful? = true}}

{bold Vacation Destinations:}
{itemize
   color = "blue",
   {item Japan
       {enumerate
           color = "teal",
           font-size = 10pt,
           font-family = "Times",
           {item Skiing}
           {item Snorkeling}
           {item Kayaking}
           {item Biking}
       }
   }
   {item China}
   {item Malaysia}
   {item Australia}
}
Tip: Both enumerate and itemize are special paragraph formats. Therefore, you can set character and paragraph options on them. Keep in mind that character options are nonlocal, and paragraph options are local. You can refer to the Curl Cue http://developers.curl.com/docs/DOC-1114 for more information on character and paragraph options.





Possibly Related Threads...
Thread Author Replies Views Last Post
  Getting Started1:Creating a Simple Applet: Hello World kino 2 6,323 08-15-2016, 03:50 PM
Last Post: dyoshida
  Styling3:Creating Styles with the Style Designer kino 0 5,086 06-16-2011, 09:52 AM
Last Post: kino
  Forms1:Creating Forms kino 0 5,336 06-15-2011, 04:55 PM
Last Post: kino
  User Interface Basics3:Creating Dialogs kino 0 3,360 06-15-2011, 03:55 PM
Last Post: kino
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('6')