Class TextInput

  • TextInput is used in Data Studio configurations to display text input fields.

  • Various methods like setAllowOverride, setHelpText, setId, setIsDynamic, setName, and setPlaceholder are available to configure the TextInput's properties.

  • These methods allow for setting unique IDs, display names, help text, placeholder text, overriding capabilities, and dynamic behavior for the text input field.

TextInput

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

constcc=DataStudioApp.createCommunityConnector();
constconfig=cc.getConfig();
constinfo1=config.newTextInput()
.setId('info1')
.setName('Search')
.setHelpText('for example, Coldplay')
.setAllowOverride(true)
.setPlaceholder('Search for an artist for all songs.');

Methods

MethodReturn typeBrief description
setAllowOverride(allowOverride) TextInput Enables overriding for this config entry.
setHelpText(helpText) TextInput Sets the help text for this configuration entry.
setId(id) TextInput Sets the unique ID for this configuration entry.
setIsDynamic(isDynamic) TextInput Sets the dynamic status for this configuration entry.
setName(name) TextInput Sets the display name for this configuration entry.
setPlaceholder(placeholder) TextInput Sets 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

TextInput — This builder, for chaining.


setHelpText(helpText)

Sets the help text for this configuration entry.

Parameters

NameTypeDescription
helpTextStringThe helpText to set.

Return

TextInput — This builder, for chaining.


setId(id)

Sets the unique ID for this configuration entry.

Parameters

NameTypeDescription
idStringThe ID to set.

Return

TextInput — 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

TextInput — This builder, for chaining.


setName(name)

Sets the display name for this configuration entry.

Parameters

NameTypeDescription
nameStringThe name to set.

Return

TextInput — This builder, for chaining.


setPlaceholder(placeholder)

Sets the placeholder text for this configuration entry.

Parameters

NameTypeDescription
placeholderStringThe placeholder text to set.

Return

TextInput — This builder, for chaining.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年12月02日 UTC.