8. Tables
Click the ("Add table") toolbar button to add a new table
element after caret position[1]. This button displays a menu letting you choose between a plain table or a table starting with a header row (where first row
child element has attribute role="header"
).
In TEI, a
p
element may have atable
child element. However, this element arrangement does not make much sense. That's why the above menu entries will take great care to never add a table inside a paragraph.
Selecting any of the above menu entries displays a dialog box letting you choose how many rows and columns the new table will initially have.
There is not need to manually set or update the
rows
andcols
attribute of atable
element. If needed, XMLmind XML Editor will automatically do this for you each time you'll save your document to disk.
Modifying a table
The other buttons found in the "Table" section of the toolbar let you modify a table.
Easy column selection. Suffice to click anywhere inside a
| |
Easy row selection. Suffice to click anywhere inside a | |
Easy cell selection. Suffice to click anywhere inside a |
table
is added after node selection (if any) or after caret, at a document location where it is valid to do so.