This shows you the differences between two versions of the page.
cheatsheet.xsd [2012/09/27 23:18] irian created |
cheatsheet.xsd [2012/09/28 12:43] (current) irian |
||
---|---|---|---|
Line 15: | Line 15: | ||
<TextElement row="2" column="2"> | <TextElement row="2" column="2"> | ||
- | <Text>This is also a text.</Text> | + | <Text bold="true">This is also a text.</Text> |
</TextElement> | </TextElement> | ||
<TableElement row="3" column="1" spanToRow="7" spanToColumn="2"> | <TableElement row="3" column="1" spanToRow="7" spanToColumn="2"> | ||
- | <Table/> | + | <Table rows="3" columns="2"> |
+ | <Header>Column 1</Header> | ||
+ | <Header>Column 2</Header> | ||
+ | <Text>Row 1/ Column 1</Text> | ||
+ | <Text>Row 1/ Column 2</Text> | ||
+ | <Text>Row 2/ Column 1</Text> | ||
+ | <Text>Row 2/ Column 2</Text> | ||
+ | <Text>Row 3/ Column 1</Text> | ||
+ | <Text bold="true">Row 3/ Column 2</Text> | ||
+ | </Table> | ||
</TableElement> | </TableElement> | ||
Line 33: | Line 42: | ||
If a Tab has no sub-tabs, it should have a Content-Element. Each Content element can specify it's own "layout" by using the rows and columns attributes, which divide the Content into a table with the given amount of rows and colums. | If a Tab has no sub-tabs, it should have a Content-Element. Each Content element can specify it's own "layout" by using the rows and columns attributes, which divide the Content into a table with the given amount of rows and colums. | ||
+ | ===== TextElement ===== | ||
In the Content element, you can have TextElements, which contain a text and an optional hint, both of which can be multi-lined by adding <br/> elements. The TextElements should always have a row and column attribute to tell the program, where they should be placed. Additionally, they can have a spanToRow and spanToColumn attribute, which tells the program that they should span over more columns and/or rows (to the given spanToRow and spanToColumn). | In the Content element, you can have TextElements, which contain a text and an optional hint, both of which can be multi-lined by adding <br/> elements. The TextElements should always have a row and column attribute to tell the program, where they should be placed. Additionally, they can have a spanToRow and spanToColumn attribute, which tells the program that they should span over more columns and/or rows (to the given spanToRow and spanToColumn). | ||
+ | |||
+ | You can make a text bold by using the bold="true" attribute in a <Text> element, as you can see in the 2nd TextElement above. | ||
+ | |||
+ | ===== TableElement ===== | ||
+ | Additionally to TextElements, there can also be TableElements in the Content, which contain a table. As you can see in the example above, a table has a rows and a columns attribute, both must be given to define how big the table is. | ||
+ | |||
+ | There can be as many Header elements as there are columns, these will simply specify the headings: The first Header element for the first column, the 2nd for the 2nd column, etc. | ||
+ | |||
+ | Following the Headers there can be Text elements. The first Text element specifies the content of the cell in the first column of the first row, the 2nd. the content of the 2nd column of the first row, etc. | ||
+ | |||
+ | As you can see in the example, Texts in the table may also be bold. |