Class TextArea

  • TextArea defines how text input is displayed in Data Studio, and its properties can be customized using various methods.

  • Developers can use methods like setAllowOverride, setHelpText, setId, setIsDynamic, setName, and setPlaceholder to configure the TextArea.

  • Each method allows for customization, like enabling overrides, setting help text, defining IDs, setting dynamic status, naming the field, and adding placeholder text.

  • All configuration methods return the TextArea builder, allowing for chained configurations in a fluent manner.

  • Using TextArea, developers can create interactive text input fields in Data Studio for users to input data.

TextArea

Contains text area information for the config. Its properties determine how the text input is displayed in Data Studio.

Usage:

const cc = DataStudioApp.createCommunityConnector();
const config = cc.getConfig();

const textArea1 = config.newTextArea()
                      .setId('textArea1')
                      .setName('Search')
                      .setHelpText('for example, Coldplay')
                      .setAllowOverride(true)
                      .setPlaceholder('Search for an artist for all songs.');

Methods

MethodReturn typeBrief description
setAllowOverride(allowOverride)TextAreaEnables overriding for this config entry.
setHelpText(helpText)TextAreaSets the help text for this configuration entry.
setId(id)TextAreaSets the unique ID for this configuration entry.
setIsDynamic(isDynamic)TextAreaSets the dynamic status for this configuration entry.
setName(name)TextAreaSets the display name for this configuration entry.
setPlaceholder(placeholder)TextAreaSets the placeholder text for this configuration entry.

Detailed documentation

setAllowOverride(allowOverride)

Enables overriding for this config entry. If set to true, data source creators have the option to enable this for report editors.

Parameters

NameTypeDescription
allowOverrideBooleanWhether or not this config entry can be overridden in reports.

Return

TextArea — This builder, for chaining.


setHelpText(helpText)

Sets the help text for this configuration entry.

Parameters

NameTypeDescription
helpTextStringThe helpText to set.

Return

TextArea — This builder, for chaining.


setId(id)

Sets the unique ID for this configuration entry.

Parameters

NameTypeDescription
idStringThe ID to set.

Return

TextArea — This builder, for chaining.


setIsDynamic(isDynamic)

Sets the dynamic status for this configuration entry.

If a dynamic configuration entry is modified, subsequent configuration entries are cleared.

Parameters

NameTypeDescription
isDynamicBooleanThe dynamic status to set.

Return

TextArea — This builder, for chaining.


setName(name)

Sets the display name for this configuration entry.

Parameters

NameTypeDescription
nameStringThe name to set.

Return

TextArea — This builder, for chaining.


setPlaceholder(placeholder)

Sets the placeholder text for this configuration entry.

Parameters

NameTypeDescription
placeholderStringThe placeholder text to set.

Return

TextArea — This builder, for chaining.