Lipi Reference Lipi

Functions

input.text_area()

A multi-line text setting, for a message or a note rather than a single word.

Syntax

                input.text_area(const string defval, const string title, const string tooltip, const string inline, const string group, const bool confirm) → input string
              

Arguments

defval required const string The text the control starts at. Required.
title const string The label shown beside the control.
tooltip const string Help text for the control.
inline const string A key that puts several controls on one row.
group const string A heading the control sits under.
confirm const bool Asks the reader to confirm the value.

Return Type

input string

Example


          indicator("Text Area Input Example", overlay=true)
customNotes = input.text_area("Enter your notes here...", title="Custom Notes")
bgcolor(customNotes == "Bullish" ? color.green : customNotes == "Bearish" ? color.red : na)