MockupUI Reference Manual

Table widget

Draws a UI table widget with columns and row header.

MockupUI - Table widget

  • Fill tables with data in a CSV-like format.

  • Add buttons, comboboxes, checkboxes and hyperlinks to cells or entire columns.

  • Tick/untick column or cell checkboxes individually.

  • Highlight or disable columns or individual table cells.

Adding table data

A row is defined as a list of comma separated values, one value per item. The first row defines the header of the table. Use the Items parameter to set the cells of the table, one line of text per table row.

Items can be text, numbers, comboboxes, checkboxes, hyperlinks and buttons or a mix of them. You can set the type of a column or individual items by prefixing the header or an item with one of the following characters:

  • * Selected: Highlights the item by adding a different color background.

  • # Disabled: Renders the item or column as greyed.

  • & Hyperlink: Renders the item or the column as an underlined hyperlink.

  • ^ Combobox: Adds a combobox widget to the cell or column.

  • - Checkbox unticked: Adds an unticked checkbox and a label.

  • + Checkbox ticked: Adds a ticked checkbox and a label.

  • [text] Button: Adds a button with a text caption.

Examples

Example 1 - Column with checkboxes

Column 1,+Checkboxes
Item     1,Check 1
Item     2,-Check 2
Item     3,-Check 3

Example 2 - Column with hyperlinks

Column 1,&Hyperlinks
Item     2,Link 1
Item     3,Link 2
Item     4,#Disabled link
Item     5,+Checkbox link

Example 3 - Disabled items

Column 1,Column 2
Item     1,#Disabled item 1
Item     2,Disabled item 2
Item     3,#Disabled item 3

Example 4- Buttons

Column 1,Buttons
Item     1,[Button 1]
Item     2,[Button 2]
Item     3,Text item

Example 5 - Mixed item types

Column 1,Column 2
Text item ,[Button 1]
&Hyperlink,+Checked
^Combobox ,#-Unchecked disabled
[Button],#[Button disabled]