Class blade.util.TextConsole
Object
|
+--blade.util.TextConsole
- class
blade.util.TextConsole
A thin wrapper around an HTML object on the screen which makes it easier to append text.
Defined in util.js
Method Summary |
function
|
setLimit(size)
Sets the size limit
|
function
|
write(str)
Writes a string to the appender
|
function
|
writeln(str)
Wites a line to the appender
|
blade.util.TextConsole
function blade.util.TextConsole(appender)
Parameters:
appender
- JS DOM object for the element the TextConsole is supposed to write to.
setLimit
function setLimit(size)
Parameters:
size
- the new size limit. Set to undefined to remove the size limit.
write
function write(str)
Writes a string to the appender
writeln
function writeln(str)
Wites a line to the appender
Parameters:
str
- string to write, followed by a br tag