Type Definitions

DataSetDropZoneLabel

The string labels used in the data set drop zone.

Type:
  • Object
Properties
NameTypeAttributesDescription
categoriesString<optional>

The categories label.

valuesString<optional>

The values label.

defaultMeasureString<optional>

The default measure label.

DataSetDropZoneVisibility

The visibility of drop zones

Type:
  • Object
Properties
NameTypeAttributesDescription
categoriesBoolean<optional>

If false, the categories drop zone will not be displayed.

valuesBoolean<optional>

If false, the values drop zone will not be displayed.

defaultMeasureBoolean<optional>

If false, the defaultMeasure drop zone will not be displayed.

DataSetLimits

Type:
  • Object
Properties
NameTypeAttributesDescription
minInteger<optional>

The minimum number of data sets allowed.

maxInteger<optional>

The maximum number of data sets allowed.

Examples

In the simplest case, setting the "dataSets.limits.max = 0" will prevent the data set popup and the "Add data set" toolbar button from being displayed:

dataSets =
{
	limits:
	{
		max: 0
	}
};

Force at least 1 dataset and a maximum of 2:

dataSets =
{
	limits:
	{
		min: 1,
		max: 2
	}
};

DataSetStrings

The strings used for data sets. The categories, values, and defaultMeasure members are used for all drop zones unless overriden by dropZoneLabels.

Type:
  • Object
Properties
NameTypeAttributesDescription
queryBaseNameString<optional>

The base name used when creating a new query.

dataSetBaseNameString<optional>

The base name used when creating a new data set.

categoriesString<optional>

The categories label.

valuesString<optional>

The values label.

defaultMeasureString<optional>

The default measure label.

Examples

Override the base names used when creating a new query and data set:

dataSets =
{
	strings:
	{
		queryBaseName: "MyQueryBaseName",
		dataSetBaseName: "MyDataSetBaseName"
	}
};

Override all data set drop zone labels:

dataSets =
{
	strings:
	{
		categories: "My category label",
		values: "My values label",
		defaultMeasure: "My default measure label"
	}
};

TopLevelProperty

See the Top level properties tutorial for more details.

Type:
  • Object
Properties
NameTypeAttributesDescription
requiredBoolean<optional>

If the type is "string" or "number", this value is applied as the standard "required" attribute.

type"string" | "color" | "number" | "boolean"<optional>

The property data type.
"color" properties are displayed in a similar way to all other color properties in the application and are edited using the color picker.

tooltipString<optional>

The tooltip.

placeholderString<optional>

The placeholder text. If the type is "string" or "number", this value is applied as the standard "placeholder" attribute.

patternString<optional>

A regular expression used to validate the INPUT element. If the type is "string" or "number", this value is applied as the standard "pattern" attribute.

minNumber<optional>

If the type is "number", this value is applied as the standard "min" attribute.

maxNumber<optional>

If the type is "number", this value is applied as the standard "max" attribute.

stepNumber<optional>

If the type is "number", this value is applied as the standard "step" attribute.

control"dropDownList"<optional>

Currently, only "dropDownList" is supported. If the value of "dropDownList" is given, all strings values will be displayed in an HTML SELECT control.

valuesArray.<String><optional>

See control for the handling when a control is specified. If no control is specified, the values are used to create a DATALIST associated with the INPUT. If no pattern is specified, and the type is "string", the values are automatically added as the valid pattern.