Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Allows dynamic addition or deletion of rows in a table.

Info

Any standard data macros other than {table-data} itself can be used inside its cells.

Parameters

Name

Required

Migratable to Cloud?

Default Value

Description

[default]/name

 Yes

No


The name of the table.

 Must

Info

The name must be unique.

initialRows

 Optional

No


The number of rows to have in the section initially

. Saves us

Tip

Saves a user from having to hit "+" repeatedly.

order

 Optional

No

ascending

Sort order for content

If
  • if set to "descending

",
    • the content will be sorted in reverse order

,
    • and new rows will be added to the top of the repeating section

.

width

 Optional

No


The width of the field

.

  • percentage (e.g. "80%"

or
  • )

  • pixels (e.g. "500px"

.Note: 
  • )

Info

Only applicable for forms mode.

Notes

Due to the simplistic parser currently being used, you need to be careful with how you format the table. The

  • the main requirement is that any '|' characters which mark a table boundary must have whitespace on either side

...

  • conversely, any other '|' characters

...

  • must not

...

  •  have any whitespace around them

...

For example, in the markup below there are two the following errors:

...

  • the Number column does not have any whitespace around the '|' markers

...

  • the Date

...

  • column does

...

  •  have whitespace inside the macro

Code Block
{table-data:My Table}
|| Text||\Number ||Date||
| {text-data:Text}|{number-data:Number}0{number-data}|{date-data:Date| format=dd-MMM-yyyy} |
{table-data}

...

  • the correct formatting option is:

Code Block
{table-data:My Table}
|| Text || Number || Date ||
| {text-data:Text} | {number-data:Number}0{number-data} | {date-data:Date|format=dd-MMM-yyyy} |
{table-data}

Tutorial Examples

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "table-data" and space = currentSpace ( )
labelstable-data