| 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. |
|
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: • Text input field (1 line): | text, <size>, <initial value> | • Textarea input field: | textarea, <rows>x<columns>, <initial value> | • Drop down box: | select, <size>, <option 1>, <option 2>, etc | • Radio buttons: | radio, <size*>, <option 1>, <option 2>, etc | * size indicates the number of buttons per line in edit mode • Checkboxes: | checkbox, <size*>, <option 1>, <option 2>, etc | * size indicates the number of checkboxes per line in edit mode • Fixed label: | label, 0, <label text> | • Row number: | row, <offset> | • Date: | date, <size>, <initial value>, <DHTML date format> | |
"text, 16" for all cells |
|
> > |
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: • Text input field (1 line): | text, <size>, <initial value> | • Textarea input field: | textarea, <rows>x<columns>, <initial value> | • Drop down box: | select, <size>, <option 1>, <option 2>, etc | • Radio buttons: | radio, <size*>, <option 1>, <option 2>, etc | * size indicates the number of buttons per line in edit mode • Checkboxes: | checkbox, <size*>, <option 1>, <option 2>, etc | * size indicates the number of checkboxes per line in edit mode • Fixed label: | label, 0, <label text> | • Row number: | row, <offset> | • Date: | date, <size>, <initial value>, <DHTML date format> | * see Mishoo documentation for more infos about the DHTML date format |
"text, 16" for all cells |
|
|
changerows |
Rows can be added and removed if "on" ; Rows can be added but not removed if "add" |
CHANGEROWS Plugin setting |
quietsave |
Quiet Save button is shown if "on" , hidden if "off" |
QUIETSAVE 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) |
|
|
-
- #Set EDITBUTTON = Edit table
- Set EDITBUTTON = Edit this table,
|
|
< < | |
> > | Note: The Plugin uses base settings like language and style from the JSCalendarContrib. The standard date format is '%e %B %Y' and is defined within this plugin. |
| |
|
< < |
- Language of DHTML calendar, pointing to attached
calendar-<code>.js language file: en , af , br , ca , cs-win , da , de , du , el , es , fr , hr , hr-utf8 , hu , it , jp , nl , no , pl , pt , ro , ru , sk , sp , sv , tr , zh
- Set JSCALENDARLANGUAGE = en
- Additional options of DHTML calendar:
Note: The Plugin looks for the JSCALENDAR* settings first in the TWiki Preferences, then in above Plugin settings |
| Limitations and Known Issues
- This Plugin does not support TWiki table formatting like Multi-span cells (e.g.
| ... || ) and cell justification (e.g. | centered | right | )
|
| Plugin Info
|
|
< < |
|
> > |
|
|
Change History: |
<-- specify latest version first --> |
21 Jan 2006: |
TWiki:Main.CrawfordCurrie ported to TWiki-4.0.0, changed to use JSCalendarContrib |
16 Sep 2004: |
Added radio buttons and checkbox controls; escaped "|" pipe symbol found in input fields to preserve tables |
|