# Edit Table Plugin This plugin allows you to edit TWiki tables using edit fields and drop down boxes. Tables have an **[ Edit table ]** button if preceeded by an `%EDITTABLE{...}%` variable. Each column can be a text field, a drop down box or a row number. Multiple tables per topic are editable, but only one at a time can be edited.
Parameter | Comment | Default |
---|---|---|
header |
Enable static header if "on" , e.g. disable editing of the first row;Else specify the header format of a new table like "|*Food*|*Drink*|" . |
(no header) |
format |
The format of one row when editing the table. A cell can be a text input field, a drop down box, a fixed label, or a row number. Cell definitions:%BR% - Text input field (1 line):%BR% | text, <size>, <initial value> | %BR% - Textarea input field:%BR% | textarea, <rows>x<columns>, <initial value> | %BR% - Drop down box: %BR% | select, <size>, <option 1>, <option 2>, etc | %BR% - Fixed label: %BR% | label, 0, <label text> | %BR% - Row number: %BR% | row, <offset> | %BR% - Date: %BR% | date, <size>, <initial value>, <DHTML date format> | |
"text, 16" %BR% for all cells |
changerows |
Rows can be added and removed if "on" ;Rows can be added but not removed if "add" |
CHANGEROWS %BR% Plugin setting |
include |
Other topic defining the EDITTABLE parameters. The first %EDITTABLE% in the topic is used. This is useful if you have many topics with the same table format and you want to update the format in one place. | (none) |
helptopic |
Topic name containing help text shown below the table when editing a table. The %STARTINCLUDE% and %STOPINCLUDE% variables can be used in the topic to specify what is shown. | (no help text) |