Tables
DeveloperHub tables consists of a header row and data rows.
To create a table:
Type
/ Select Table
Table Example
Parameter | Type | Default Value |
---|---|---|
user_id | int | Auto generated |
user_name | string | John Doe |
user_age | int | 25 |
Table Options
To view the table options, right-click on a cell of the table. You will be able to:
- Insert column left
- Insert column right
- Delete column
- Duplicate column
- Insert row above
- Insert row below
- Delete row
- Duplicate row
- Reorder rows and columns
Note: You can also add new rows to the end by tapping
Resizing Columns
To resize column, hover right before a column ends. A vertical handle will show that is either:
- Grey: Indicates that a width has not been specified. The column auto-sizes.
- Red: Indicates that a width has ben specified. The column has a fixed size.
You can then resize the column by dragging the handle.
To remove set fixed sizing, double click on the handle.
If you set a fixed size for a column, then it is best to make sure that it works for other screen sizes.
If a table has a fixed size column, then on exporting the documentation, it will not be in markdown format as markdown does not support fixed column widths notation.
Copying & Pasting
To copy an entire table, select the table entirely. To make sure you're doing that right, select the line above it and below it then copy. You may then paste it where you need and remove the extra lines.
To copy fields of a table to another table, select the fields in the source table, copy and paste into the destination table. Make sure that the destination table has enough size for the source fields to be pasted in. You may also copy from external sources and paste into DeveloperHub.