<body>
<!-- The dialog for debug or other display text. -->
<dialog id="textDialog"
style="border: none; padding: 0px">
<textarea id="textArea" rows="25" cols="80" autocorrect="off"
autocapitalize="off" spellcheck="false" readonly
style="border: none; padding: 10px">
</textarea>
</dialog>
</body>
// Sets the textarea rows for newlines.
SetTextRows()
{
const className = "ClassName";
const methodName = "MethodName()";
const valueName = "text";
const value = "This is the\r\nthree line\r\ntext value.";
const force = false;
const textDialogID = "textDialog";
const textAreaID = "textArea";
LJC.ShowText(className, methodName, valueName, value, force, textDialogID
, textAreaID);
const eTextArea = LJC.Element(textAreaID);
LJC.SetTextRows(eTextArea);
}
|