Constructor
new Multiline(text)
Parameters:
Name | Type | Description |
---|---|---|
text |
Array.<String> | the array of strings |
- Source:
Members
cur
The line number of the currently selected line
- Source:
length
Get the length of the array
- Source:
textArr
Get the array of strings, that was passed to the constructor
- Source:
Methods
dec() → {function}
Set the currently selected line one lower
Returns itself to allow chaining
- Source:
Returns:
- Type
- function
decrement()
Same as dec(), also returns itself
- Source:
- See:
gC() → {string}
Get the line that is currently selected
- Source:
Returns:
- Type
- string
getCurrent() → {string}
Same as gC()
- Source:
- See:
Returns:
- Type
- string
getLine()
Same as gL()
- Source:
- See:
gL(number) → {String}
Get the text at a specific line
Parameters:
Name | Type | Description |
---|---|---|
number |
number | line number |
- Source:
Returns:
- Type
- String
inc() → {function}
Set the currently selected line one higher
Returns itself to allow chaining
- Source:
Returns:
- Type
- function
increment()
Same as inc(), also returns itself
- Source:
- See: