ScriptLabelledDataEntry

From Q
Jump to navigation Jump to search

ScriptLabelledDataEntry

Gives the a spreadsheet-like form in which to enter data directly.

getValue()

Retrieves the data entered by the user.
Returns:An array of rows, where each row is an array of strings. If no data has been entered then this will return null.

isExpression

Use this to control whether the item should be treated as an expression or as a string in R code. Only applicable to textBox, comboBox and dropBox controls.

lineBreakAfter

Use this where your Rule has many controls, and they do not fit comfortably in a single line. It allows you to specify that a new row will be started after this control.
Example:
c.lineBreakAfter = true;

requireValue()

Retrieves the data entered by the user. An error will occur if there is no data.
Returns:An array of rows, where each row is an array of strings.

setDefault(dflt)

Set a default.
dflttrue for checked, false for unchecked. Null for indeterminate.

type

Returns the name we use to refer to this class in the documentation.

visible

Set this to false if you want a control you have created to not be shown to the user. This property is only available in Q v5.4