Table Item - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Maplets[Elements]

 TableItem
 specify contents of a column in a table row or header

 Calling Sequence TableItem(opts)

Parameters

 opts - equation(s) of the form caption=value; specify options for the TableItem element

Description

 • The TableItem element specifies the contents of a column in a Maplet application table row or header.
 • The TableItem element features can be modified by using options.  To simplify specifying options in the Maplets package, certain options and contents can be set without using an equation. The following table lists elements, symbols, and types (in the left column) and the corresponding option or content (in the right column) to which inputs of this type are, by default, assigned.

 Elements, Symbols, or Types Assumed Option or Content non-option caption option

 • A TableItem element cannot contain other elements.
 • A TableItem element can be contained in a TableHeader or TableRow element.
 Note: The same number of TableItem elements must be specified in each row and, if specified, the header.
 • The following table describes the control and use of the TableItem element options.
 An x in the I column indicates that the option can be initialized, that is, specified in the calling sequence (element definition).
 An x in the R column indicates that the option is required in the calling sequence.
 An x in the G column indicates that the option can be read, that is, retrieved by using the Get tool.
 An x in the S column indicates that the option can be written, that is, set by using the SetOption element or the Set tool.

 Option I R G S caption x

 • The opts argument can contain one or more of the following equations that set Maplet application options.
 caption = string or symbol
 The content of the table cell.

Examples

 > $\mathrm{with}\left({\mathrm{Maplets}}_{\mathrm{Elements}}\right):$
 > $\mathrm{maplet}≔\mathrm{Maplet}\left(\left[\mathrm{BoxCell}\left(\mathrm{Table}\left(\mathrm{TableHeader}\left(\mathrm{TableItem}\left(A\right),\mathrm{TableItem}\left(B\right)\right),\mathrm{TableRow}\left(\mathrm{TableItem}\left('\mathrm{caption}'=1\right),\mathrm{TableItem}\left('\mathrm{caption}'=2\right)\right),\mathrm{TableRow}\left(\mathrm{TableItem}\left('\mathrm{caption}'=3\right),\mathrm{TableItem}\left('\mathrm{caption}'=4\right)\right)\right),'\mathrm{as_needed}'\right),\mathrm{Button}\left("OK",\mathrm{Shutdown}\left(\right)\right)\right]\right):$
 > ${\mathrm{Maplets}}_{\mathrm{Display}}\left(\mathrm{maplet}\right)$

This Maplet application can be rewritten as:

 > $\mathrm{with}\left({\mathrm{Maplets}}_{\mathrm{Elements}}\right):$
 > $\mathrm{maplet}≔\mathrm{Maplet}\left(\left[\mathrm{BoxCell}\left(\mathrm{Table}\left(\left[A,B\right],\left[\left[1,2\right],\left[3,4\right]\right]\right),'\mathrm{as_needed}'\right),\mathrm{Button}\left("OK",\mathrm{Shutdown}\left(\right)\right)\right]\right):$
 > ${\mathrm{Maplets}}_{\mathrm{Display}}\left(\mathrm{maplet}\right)$