# 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, a date field, etc. Multiple tables per topic are editable, but only one at a time can be edited.
## Per Table Settings Add a `%EDITTABLE{...}%` variable just before an existing table to make it editable, or add the variable anywhere in a topic to start a new table. Parameters:
Parameter Comment Default
header Specify the header format of a new table like "|*Food*|*Drink*|". Useful to start a table with only a button (no header)
format The format of one column when editing the table. A cell can be a text input field, or any of these edit field types:%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% • Radio buttons: %BR%   | radio, <size*>, <option 1>, <option 2>, etc | %BR%   * size indicates the number of buttons per line in edit mode %BR% • Checkboxes: %BR%   | checkbox, <size*>, <option 1>, <option 2>, etc | %BR%   * size indicates the number of checkboxes per line in edit mode %BR% • Fixed label: %BR%   | label, 0, <label text> | %BR% • Row number: %BR%   | row, <offset> | %BR% • Date: %BR%   | date, <size>, <initial value>, <DHTML date format> | %BR%   * see Mishoo documentation for more infos about the 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
quietsave Quiet Save button is shown if "on", hidden if "off" QUIETSAVE %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)
headerislabel Table header cells are read-only (labels) if "on"; header cells can be edited if "off" or "0" "on"
editbutton Set edit button text, e.g. "Edit this table"; set button image with alt text, e.g. "Edit table, %PUBURL%/%TWIKIWEB%/TWikiDocGraphics/edittopic.gif"; hide edit button at the end of the table with "hide" (Note: Button is automatically hidden if an edit button is present in a cell) EDITBUTTON %BR% Plugin setting
### Initial Values By default, variables in `` (of text input field) and `