Class Log
Define a Log block to be displayed into a JBlocks.
- Defined in: jblocks.block.log.js
- Extends ScrollableHtml
Constructor Attributes | Constructor Name and Description |
---|---|
Log()
A Log block displays the jBlocks block. |
Method Summary
Class Detail
Log()
A Log block displays the jBlocks block. It is mainly used for debugging.
The constructor should not be invoked directly but JBlocks#newBlock or JBlocks#addNewBlock should be used instead.
Method Detail
-
clearLog()Clears the log.
-
init(layout, options)Initializes a Log block. The method is invoked by the jBlocks core and must never be called directly.
- Parameters:
- {Object} layout Optional
- see ScrollableHtml#init
- {Object} options Optional
- in addition to base class options ScrollableHtml#init:
- {Number} options.refreshPeriod Optional, Default: 500
- the number of millisecond to check and refresh the scrollbar.
- {Number} options.maxEntries Optional, Default: 100
- the maximum number of lines in the log.