Figure 7: Structure of <labeled list>
<labeled-list> is one of the most powerful elements. If possible it is rendered as a label followed by the item body:
XX XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXX XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXX XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
The indentation is determined by the rendition system which should take into account the biggest <item-label>.
Sometimes the author wants some influence to the indentation. For this respect <indent-sample> can receive any content which is used by the rendition system as a sample which must be rendered and measured to determine the indentation.
The attribute [item-label-pos] defines how the <item-label> should be handled. The default value of the attribute is [item-label-pos]="no-newline". If an <item-label> is wider than <ident-sample> the most general case is to start the item body in a new line if necessary( [item-label-pos]="newline-if-necessary"):
XXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXX XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXX XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
If the attribute has the value [item-label-pos]="newline" the item-body starts generally in a new line.
Note that <indent-sample> can be used to adjust the indentation if there are multiple <labeled-list>s which should have the same indentation.
|