edit
Class used for retrieving and referencing user input
Constructor Summary
Public Constructor | ||
public | constructor(pEditVariable: String) Used to retrieve user-specified values from the top of the pane (symbol and date correspond to the two default options at the top of a pane) |
Member Summary
Public Members | ||
public get | Returns the user input as a number | |
public get | Returns the user input as a string | |
public set | Sets the user input value to the provided string |
Public Constructors
public constructor(pEditVariable: String) source
Used to retrieve user-specified values from the top of the pane (symbol and date correspond to the two default options at the top of a pane)
Params:
Name | Type | Attribute | Description |
pEditVariable | String |
|
Example:
// Specific v9 keywords ("symbol" and "date")
let symbol = new v9.edit("symbol").value; //gets the symbol from the default textbox at the top of the pane
let date = new v9.edit("date").value; //gets the date from the default textbox at the top of the pane
// Custom user input keywords can be anything else
let quantity = new v9.edit("QUANTITY"); //gets the string the user inputs into a custom 'QUANTITY' textbox at the top of the pane
let quantity = new v9.edit("QUANTITY").value; //gets the string the user inputs into a custom 'QUANTITY' textbox at the top of the pane
let quantity = new v9.edit("QUANTITY").number; //gets the number the user inputs into a custom 'QUANTITY' textbox at the top of the pane