Controlling Table Rows and Columns: Difference between revisions

From HLKitWiki
Jump to navigationJump to search
 
No edit summary
Line 1: Line 1:
[[Category:Basic Concepts and Terminology]]
[[Category:Basic Concepts and Terminology]]
[Context: [[Home|HL Kit]] … [[Basic Concepts and Terminology]] … [[Manipulation of Visual Elements]] … [[Working With Tables]]]
[Context: [[Home|HL Kit]] … [[Basic Concepts and Terminology]] … [[Manipulation of Visual Elements]] … [[Working With Tables]]]
==Multi-Column Tables==
Most tables will possess a single column and display as many rows as possible in the space available to them. However, there will be times when you'll want to use tables with multiple columns. For example, if the items being displayed don't need a lot of horizontal space, it may be much better to display them in two or three columns. In the Savage Worlds data files, both Rewards and Resources are perfect candidates for two-column tables.
You can pre-define a table to have multiple columns by setting the "columns" attribute on the table. When a table has multiple columns, the items are sorted so that they increase going downward in the first column, then continue at the top of the second column and increase going downward, then continue at the top of the third column, etc.
==Dynamic Control of Rows and Columns==
You can also control the number of rows and columns possessed by a table dynamically from with a Position script. This can be extremely useful when trying to fit multiple tables into a limit space. Whatever you dictate first
maxrows and maxcolumns via scripts

Revision as of 04:06, 20 November 2008

[Context: HL Kit … Basic Concepts and Terminology … Manipulation of Visual Elements … Working With Tables]

Multi-Column Tables

Most tables will possess a single column and display as many rows as possible in the space available to them. However, there will be times when you'll want to use tables with multiple columns. For example, if the items being displayed don't need a lot of horizontal space, it may be much better to display them in two or three columns. In the Savage Worlds data files, both Rewards and Resources are perfect candidates for two-column tables.

You can pre-define a table to have multiple columns by setting the "columns" attribute on the table. When a table has multiple columns, the items are sorted so that they increase going downward in the first column, then continue at the top of the second column and increase going downward, then continue at the top of the third column, etc.

Dynamic Control of Rows and Columns

You can also control the number of rows and columns possessed by a table dynamically from with a Position script. This can be extremely useful when trying to fit multiple tables into a limit space. Whatever you dictate first

maxrows and maxcolumns via scripts