GoogleApi.Chat.V1.Model.GoogleAppsCardV1TextInput (google_api_chat v0.30.0) View Source

A text input is a UI item where users can input text. A text input can also have an onChange action and suggestions.


  • autoCompleteAction (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t, default: nil) - The refresh function that returns suggestions based on the user's input text. If the callback is not specified, autocomplete is done in client side based on the initial suggestion items.
  • hintText (type: String.t, default: nil) - The hint text.
  • initialSuggestions (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Suggestions.t, default: nil) - The initial suggestions made before any user input.
  • label (type: String.t, default: nil) - At least one of label and hintText must be specified.
  • name (type: String.t, default: nil) - The name of the text input which is used in formInput.
  • onChangeAction (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t, default: nil) - The onChange action, for example, invoke a function.
  • type (type: String.t, default: nil) - The style of the text, for example, a single line or multiple lines.
  • value (type: String.t, default: nil) - The default value when there is no input from the user.

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() :: %GoogleApi.Chat.V1.Model.GoogleAppsCardV1TextInput{
  autoCompleteAction: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t() | nil,
  hintText: String.t() | nil,
    GoogleApi.Chat.V1.Model.GoogleAppsCardV1Suggestions.t() | nil,
  label: String.t() | nil,
  name: String.t() | nil,
  onChangeAction: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t() | nil,
  type: String.t() | nil,
  value: String.t() | nil

Link to this section Functions


decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.