ScriptLabelledFilePicker

From Q
Jump to navigation Jump to search

ScriptLabelledFilePicker

Represents a labelled control for selecting a file from Displayr Cloud Drive. The control is created by the RControlForm object's filePicker() function. The value is the file's path and name within the cloud drive (e.g. "Folder\\data.csv", with the backslash escaped as in any script string), which is the same form accepted by flipAPI::QLoadData in R code.

getValue()

Gets the selected file's path and name within the cloud drive (e.g. "Folder\\data.csv"), or null if no file is selected.

isExpression

A file path must always reach R as a quoted string; treating it as an R expression would evaluate the path as source code.

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;

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